AsynchronousOperationException 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 AsynchronousOperationException class.
Overloads
AsynchronousOperationException() |
Initializes a new instance of the AsynchronousOperationException class. |
AsynchronousOperationException(Exception) |
Initializes a new instance of the AsynchronousOperationException class with a system-supplied error message and a reference to the inner exception that is the cause of this exception. |
AsynchronousOperationException(String) |
Initializes a new instance of the AsynchronousOperationException class with a specified error message. |
AsynchronousOperationException(SerializationInfo, StreamingContext) |
Initializes a new instance of the AsynchronousOperationException class with serialized data. |
AsynchronousOperationException(String, Exception) |
Initializes a new instance of the AsynchronousOperationException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
AsynchronousOperationException()
Initializes a new instance of the AsynchronousOperationException class.
public:
AsynchronousOperationException();
public AsynchronousOperationException ();
Public Sub New ()
Remarks
This constructor initializes the Message property of the new instance to a system-supplied message that describes the error. This message takes into account the current system culture.
The following table shows the initial property values for the new instance.
Property | Value |
---|---|
InnerException | null . |
Message | The localized error message string. |
Applies to
AsynchronousOperationException(Exception)
Initializes a new instance of the AsynchronousOperationException class with a system-supplied error message and a reference to the inner exception that is the cause of this exception.
public:
AsynchronousOperationException(Exception ^ innerException);
public AsynchronousOperationException (Exception innerException);
new System.IdentityModel.Services.AsynchronousOperationException : Exception -> System.IdentityModel.Services.AsynchronousOperationException
Public Sub New (innerException As Exception)
Parameters
- innerException
- Exception
The Exception that is the cause of the current exception. If the innerException
parameter is not null
, the current exception is raised in a catch
block that handles the inner exception.
Remarks
An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is passed into the constructor.
The following table shows the initial property values for the new instance.
Property | Value |
---|---|
InnerException | The inner exception reference. |
Message | A system-supplied message that describes the error. This message takes into account the current system culture. |
Applies to
AsynchronousOperationException(String)
Initializes a new instance of the AsynchronousOperationException class with a specified error message.
public:
AsynchronousOperationException(System::String ^ message);
public AsynchronousOperationException (string message);
new System.IdentityModel.Services.AsynchronousOperationException : string -> System.IdentityModel.Services.AsynchronousOperationException
Public Sub New (message As String)
Parameters
- message
- String
The error message that explains the reason for the exception.
Remarks
This constructor initializes the Message property of the new exception using the message
parameter. The content of message
is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.
The following table shows the initial property values for the new instance.
Property | Value |
---|---|
InnerException | null . |
Message | The error message string. |
Applies to
AsynchronousOperationException(SerializationInfo, StreamingContext)
Initializes a new instance of the AsynchronousOperationException class with serialized data.
protected:
AsynchronousOperationException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected AsynchronousOperationException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.IdentityModel.Services.AsynchronousOperationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.IdentityModel.Services.AsynchronousOperationException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
A SerializationInfo object that holds the serialized object data.
- context
- StreamingContext
A StreamingContext object that contains the contextual information about the source or destination.
Remarks
This constructor is called during deserialization to reconstitute the exception object transmitted over a stream.
Applies to
AsynchronousOperationException(String, Exception)
Initializes a new instance of the AsynchronousOperationException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public:
AsynchronousOperationException(System::String ^ message, Exception ^ innerException);
public AsynchronousOperationException (string message, Exception innerException);
new System.IdentityModel.Services.AsynchronousOperationException : string * Exception -> System.IdentityModel.Services.AsynchronousOperationException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
The error message that explains the reason for the exception.
- innerException
- Exception
The Exception that is the cause of the current exception. If the innerException
parameter is not null
, the current exception is raised in a catch
block that handles the inner exception.
Remarks
An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is passed into the constructor.
The following table shows the initial property values for the new instance.
Property | Value |
---|---|
InnerException | The inner exception reference. |
Message | The error message string. |