共用方式為


EventLocationException Constructors

Definition

Initializes a new instance of the EventLocationException class.

Overloads

EventLocationException()

Initializes a new instance of the EventLocationException class using default values.

EventLocationException(String)

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

EventLocationException(SerializationInfo, StreamingContext)

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

EventLocationException(String, Exception)

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

EventLocationException()

Initializes a new instance of the EventLocationException class using default values.

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

Applies to

EventLocationException(String)

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

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

Parameters

message
String

The error message.

Applies to

EventLocationException(SerializationInfo, StreamingContext)

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

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

Parameters

info
SerializationInfo

The specified serialization.

context
StreamingContext

The context information.

Applies to

EventLocationException(String, Exception)

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

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

Parameters

message
String

The error message.

inner
Exception

The reference to the inner exception.

Applies to