EventStreamException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 EventStreamException 类的新实例。
重载
| EventStreamException() |
使用默认值初始化 类的新实例 EventStreamException 。 |
| EventStreamException(String) |
用指定的错误消息初始化 EventStreamException 类的新实例。 |
| EventStreamException(SerializationInfo, StreamingContext) |
使用指定的序列化和上下文信息初始化 EventStreamException 类的新实例。 |
| EventStreamException(String, Exception) |
使用指定的错误消息和对作为此异常原因的内部异常的引用来初始化 EventStreamException 类的新实例。 |
EventStreamException()
使用默认值初始化 类的新实例 EventStreamException 。
public:
EventStreamException();
public EventStreamException ();
Public Sub New ()
适用于
EventStreamException(String)
用指定的错误消息初始化 EventStreamException 类的新实例。
public:
EventStreamException(System::String ^ message);
public EventStreamException (string message);
new Microsoft.SqlServer.XEvent.Linq.EventStreamException : string -> Microsoft.SqlServer.XEvent.Linq.EventStreamException
Public Sub New (message As String)
参数
- message
- String
错误消息。
适用于
EventStreamException(SerializationInfo, StreamingContext)
使用指定的序列化和上下文信息初始化 EventStreamException 类的新实例。
protected:
EventStreamException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected EventStreamException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.SqlServer.XEvent.Linq.EventStreamException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.SqlServer.XEvent.Linq.EventStreamException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
参数
- info
- SerializationInfo
序列化的对象数据。
- context
- StreamingContext
关于来源和目标的上下文信息
适用于
EventStreamException(String, Exception)
使用指定的错误消息和对作为此异常原因的内部异常的引用来初始化 EventStreamException 类的新实例。
public:
EventStreamException(System::String ^ message, Exception ^ inner);
public EventStreamException (string message, Exception inner);
new Microsoft.SqlServer.XEvent.Linq.EventStreamException : string * Exception -> Microsoft.SqlServer.XEvent.Linq.EventStreamException
Public Sub New (message As String, inner As Exception)
参数
- message
- String
错误消息。
- inner
- Exception
内部异常。