AsynchronousOperationException 构造函数

定义

初始化 AsynchronousOperationException 类的新实例。

重载

AsynchronousOperationException()

初始化 AsynchronousOperationException 类的新实例。

AsynchronousOperationException(Exception)

使用指定错误信息和对作为此异常原因的内部异常的引用来初始化 AsynchronousOperationException 类的新实例。

AsynchronousOperationException(String)

用指定的错误消息初始化 AsynchronousOperationException 类的新实例。

AsynchronousOperationException(SerializationInfo, StreamingContext)

用序列化数据初始化 AsynchronousOperationException 类的新实例。

AsynchronousOperationException(String, Exception)

使用指定的错误消息和对作为此异常原因的内部异常的引用来初始化 AsynchronousOperationException 类的新实例。

AsynchronousOperationException()

初始化 AsynchronousOperationException 类的新实例。

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

注解

此构造函数将新实例的 Message 属性初始化为系统提供的错误描述消息。 此消息会考虑当前系统区域性。

下表显示了新实例的初始属性值。

Property
InnerException null.
Message 本地化的错误消息字符串。

适用于

AsynchronousOperationException(Exception)

使用指定错误信息和对作为此异常原因的内部异常的引用来初始化 AsynchronousOperationException 类的新实例。

public:
 AsynchronousOperationException(Exception ^ innerException);
public AsynchronousOperationException (Exception innerException);
new System.IdentityModel.Services.AsynchronousOperationException : Exception -> System.IdentityModel.Services.AsynchronousOperationException
Public Sub New (innerException As Exception)

参数

innerException
Exception

导致当前异常的 Exception。 如果 innerException 参数不为 null,则当前异常将在处理内部异常的 catch 块中引发。

注解

因前一个异常而直接引发的异常应在 InnerException 属性中包含对前一个异常的引用。 属性 InnerException 返回传递给构造函数的相同值。

下表显示了新实例的初始属性值。

Property “值”
InnerException 内部异常引用。
Message 描述错误的系统提供的消息。 此消息会考虑当前系统区域性。

适用于

AsynchronousOperationException(String)

用指定的错误消息初始化 AsynchronousOperationException 类的新实例。

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)

参数

message
String

解释异常原因的错误消息。

注解

此构造函数使用 message 参数初始化Message新异常的 属性。 message 的内容设计为易于理解。 此构造函数的调用方需要确保此字符串已针对当前系统区域性进行了本地化。

下表显示了新实例的初始属性值。

Property
InnerException null.
Message 错误消息字符串。

适用于

AsynchronousOperationException(SerializationInfo, StreamingContext)

用序列化数据初始化 AsynchronousOperationException 类的新实例。

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)

参数

info
SerializationInfo

保留序列化对象数据的 SerializationInfo 对象。

context
StreamingContext

StreamingContext 对象,它包含有关源或目标的上下文信息。

注解

在反序列化期间调用此构造函数以重新构造在流上传输的异常对象。

适用于

AsynchronousOperationException(String, Exception)

使用指定的错误消息和对作为此异常原因的内部异常的引用来初始化 AsynchronousOperationException 类的新实例。

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)

参数

message
String

解释异常原因的错误消息。

innerException
Exception

导致当前异常的 Exception。 如果 innerException 参数不为 null,则当前异常将在处理内部异常的 catch 块中引发。

注解

因前一个异常而直接引发的异常应在 InnerException 属性中包含对前一个异常的引用。 属性 InnerException 返回传递给构造函数的相同值。

下表显示了新实例的初始属性值。

Property “值”
InnerException 内部异常引用。
Message 错误消息字符串。

适用于