共用方式為


EventStreamException Constructors

Definition

Initializes a new instance of the EventStreamException class.

Overloads

EventStreamException()

Initializes a new instance of the EventStreamException class with the default values.

EventStreamException(String)

Initializes a new instance of the EventStreamException class with a specified error message.

EventStreamException(SerializationInfo, StreamingContext)

Initializes a new instance of the EventStreamException class with the specified serialization and context information.

EventStreamException(String, Exception)

Initializes a new instance of the EventStreamException class with a specified error message and a reference to the inner exception that is the cause of this exception.

EventStreamException()

Initializes a new instance of the EventStreamException class with the default values.

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

Applies to

EventStreamException(String)

Initializes a new instance of the EventStreamException class with a specified error message.

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)

Parameters

message
String

The error message.

Applies to

EventStreamException(SerializationInfo, StreamingContext)

Initializes a new instance of the EventStreamException class with the specified serialization and context information.

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)

Parameters

info
SerializationInfo

The serialized object data.

context
StreamingContext

The contextual information about the source or destination.

Applies to

EventStreamException(String, Exception)

Initializes a new instance of the EventStreamException class with a specified error message and a reference to the inner exception that is the cause of this exception.

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)

Parameters

message
String

The error message.

inner
Exception

The inner exception.

Applies to