XEventException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the XEventException class.
Overloads
XEventException() |
Initializes a new instance of the XEventException class with the default values. |
XEventException(String) |
Initializes a new instance of the XEventException class with a specified error message. |
XEventException(SerializationInfo, StreamingContext) |
Initializes a new instance of the XEventException class with the specified serialization and context information. |
XEventException(String, Exception) |
Initializes a new instance of the XEventException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
XEventException()
Initializes a new instance of the XEventException class with the default values.
public:
XEventException();
public XEventException ();
Public Sub New ()
Applies to
XEventException(String)
Initializes a new instance of the XEventException class with a specified error message.
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)
Parameters
- message
- String
The error message.
Applies to
XEventException(SerializationInfo, StreamingContext)
Initializes a new instance of the XEventException class with the specified serialization and context information.
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)
Parameters
- info
- SerializationInfo
The serialized object data.
- context
- StreamingContext
The contextual information about the source or destination.
Applies to
XEventException(String, Exception)
Initializes a new instance of the XEventException class with a specified error message and a reference to the inner exception that is the cause of this exception.
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)
Parameters
- message
- String
The error message.
- inner
- Exception
The inner exception.