WizardCancelledException 构造函数 (SerializationInfo, StreamingContext)

用序列化数据初始化 WizardCancelledException 类的新实例。

命名空间:  Microsoft.VisualStudio.TemplateWizard
程序集:  Microsoft.VisualStudio.TemplateWizardInterface(在 Microsoft.VisualStudio.TemplateWizardInterface.dll 中)

语法

声明
Protected Sub New ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
protected WizardCancelledException(
    SerializationInfo info,
    StreamingContext context
)
protected:
WizardCancelledException(
    SerializationInfo^ info, 
    StreamingContext context
)
new : 
        info:SerializationInfo * 
        context:StreamingContext -> WizardCancelledException
protected function WizardCancelledException(
    info : SerializationInfo, 
    context : StreamingContext
)

参数

异常

异常 条件
ArgumentNullException

info 参数为一个空的引用(Visual Basic 中的 Nothing)

SerializationException

类名称为空引用(在 Visual Basic 中为 Nothing)或 HResult 为零 (0)。

.NET Framework 安全性

请参见

参考

WizardCancelledException 类

WizardCancelledException 重载

Microsoft.VisualStudio.TemplateWizard 命名空间