CodeDomSerializerException 构造函数

定义

初始化 CodeDomSerializerException 类的新实例。

重载

CodeDomSerializerException(Exception, CodeLinePragma)

使用指定的异常和行信息初始化 CodeDomSerializerException 类的新实例。

CodeDomSerializerException(Exception, IDesignerSerializationManager)

初始化 CodeDomSerializerException 类的新实例。

CodeDomSerializerException(SerializationInfo, StreamingContext)

使用指定的序列化数据和上下文初始化 CodeDomSerializerException 类的新实例。

CodeDomSerializerException(String, CodeLinePragma)

使用指定的消息和行信息初始化 CodeDomSerializerException 类的新实例。

CodeDomSerializerException(String, IDesignerSerializationManager)

初始化 CodeDomSerializerException 类的新实例。

CodeDomSerializerException(Exception, CodeLinePragma)

使用指定的异常和行信息初始化 CodeDomSerializerException 类的新实例。

public:
 CodeDomSerializerException(Exception ^ ex, System::CodeDom::CodeLinePragma ^ linePragma);
public CodeDomSerializerException (Exception ex, System.CodeDom.CodeLinePragma linePragma);
public CodeDomSerializerException (Exception? ex, System.CodeDom.CodeLinePragma? linePragma);
new System.ComponentModel.Design.Serialization.CodeDomSerializerException : Exception * System.CodeDom.CodeLinePragma -> System.ComponentModel.Design.Serialization.CodeDomSerializerException
Public Sub New (ex As Exception, linePragma As CodeLinePragma)

参数

ex
Exception

要引发的异常。

linePragma
CodeLinePragma

指示异常发生位置的 CodeLinePragma

适用于

CodeDomSerializerException(Exception, IDesignerSerializationManager)

初始化 CodeDomSerializerException 类的新实例。

public:
 CodeDomSerializerException(Exception ^ ex, System::ComponentModel::Design::Serialization::IDesignerSerializationManager ^ manager);
public CodeDomSerializerException (Exception ex, System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager);
public CodeDomSerializerException (Exception? ex, System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager);
new System.ComponentModel.Design.Serialization.CodeDomSerializerException : Exception * System.ComponentModel.Design.Serialization.IDesignerSerializationManager -> System.ComponentModel.Design.Serialization.CodeDomSerializerException
Public Sub New (ex As Exception, manager As IDesignerSerializationManager)

参数

ex
Exception

要引发的异常。

manager
IDesignerSerializationManager

要从中提取上下文的 IDesignerSerializationManager 对象。

例外

Managernull

适用于

CodeDomSerializerException(SerializationInfo, StreamingContext)

使用指定的序列化数据和上下文初始化 CodeDomSerializerException 类的新实例。

protected:
 CodeDomSerializerException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected CodeDomSerializerException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.ComponentModel.Design.Serialization.CodeDomSerializerException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ComponentModel.Design.Serialization.CodeDomSerializerException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

存储正用于序列化或反序列化正由 CodeDomSerializer 序列化或反序列化的对象的数据。

context
StreamingContext

描述生成该异常的流的源和目标,以及用于保留该上下文和附加的由调用方定义的上下文的序列化方法。

适用于

CodeDomSerializerException(String, CodeLinePragma)

使用指定的消息和行信息初始化 CodeDomSerializerException 类的新实例。

public:
 CodeDomSerializerException(System::String ^ message, System::CodeDom::CodeLinePragma ^ linePragma);
public CodeDomSerializerException (string message, System.CodeDom.CodeLinePragma linePragma);
public CodeDomSerializerException (string? message, System.CodeDom.CodeLinePragma? linePragma);
new System.ComponentModel.Design.Serialization.CodeDomSerializerException : string * System.CodeDom.CodeLinePragma -> System.ComponentModel.Design.Serialization.CodeDomSerializerException
Public Sub New (message As String, linePragma As CodeLinePragma)

参数

message
String

描述异常的消息。

linePragma
CodeLinePragma

指示异常发生位置的 CodeLinePragma

适用于

CodeDomSerializerException(String, IDesignerSerializationManager)

初始化 CodeDomSerializerException 类的新实例。

public:
 CodeDomSerializerException(System::String ^ message, System::ComponentModel::Design::Serialization::IDesignerSerializationManager ^ manager);
public CodeDomSerializerException (string message, System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager);
public CodeDomSerializerException (string? message, System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager);
new System.ComponentModel.Design.Serialization.CodeDomSerializerException : string * System.ComponentModel.Design.Serialization.IDesignerSerializationManager -> System.ComponentModel.Design.Serialization.CodeDomSerializerException
Public Sub New (message As String, manager As IDesignerSerializationManager)

参数

message
String

描述异常的消息。

manager
IDesignerSerializationManager

要从中提取上下文的 IDesignerSerializationManager 对象。

例外

Managernull

适用于