XEventException 构造函数

定义

初始化 XEventException 类的新实例。

重载

XEventException()

使用默认值初始化 类的新实例 XEventException

XEventException(String)

用指定的错误消息初始化 XEventException 类的新实例。

XEventException(SerializationInfo, StreamingContext)

使用指定的序列化和上下文信息初始化 XEventException 类的新实例。

XEventException(String, Exception)

使用指定的错误消息和对作为此异常原因的内部异常的引用来初始化 XEventException 类的新实例。

XEventException()

使用默认值初始化 类的新实例 XEventException

public:
 XEventException();
public XEventException ();
Public Sub New ()

适用于

XEventException(String)

用指定的错误消息初始化 XEventException 类的新实例。

public:
 XEventException(System::String ^ message);
public XEventException (string message);
new Microsoft.SqlServer.XEvent.Linq.XEventException : string -> Microsoft.SqlServer.XEvent.Linq.XEventException
Public Sub New (message As String)

参数

message
String

错误消息。

适用于

XEventException(SerializationInfo, StreamingContext)

使用指定的序列化和上下文信息初始化 XEventException 类的新实例。

protected:
 XEventException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected XEventException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.SqlServer.XEvent.Linq.XEventException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.SqlServer.XEvent.Linq.XEventException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

序列化的对象数据。

context
StreamingContext

关于来源和目标的上下文信息

适用于

XEventException(String, Exception)

使用指定的错误消息和对作为此异常原因的内部异常的引用来初始化 XEventException 类的新实例。

public:
 XEventException(System::String ^ message, Exception ^ inner);
public XEventException (string message, Exception inner);
new Microsoft.SqlServer.XEvent.Linq.XEventException : string * Exception -> Microsoft.SqlServer.XEvent.Linq.XEventException
Public Sub New (message As String, inner As Exception)

参数

message
String

错误消息。

inner
Exception

内部异常。

适用于