InvalidAsynchronousStateException 构造函数

定义

初始化 InvalidAsynchronousStateException 类的新实例。

重载

InvalidAsynchronousStateException()

初始化 InvalidAsynchronousStateException 类的新实例。

InvalidAsynchronousStateException(String)

使用指定的详细说明初始化 InvalidAsynchronousStateException 类的新实例。

InvalidAsynchronousStateException(SerializationInfo, StreamingContext)
已过时.

使用给定的 SerializationInfoStreamingContext初始化 InvalidAsynchronousStateException 类的新实例。

InvalidAsynchronousStateException(String, Exception)

使用指定的详细说明和指定的异常初始化 InvalidAsynchronousStateException 类的新实例。

InvalidAsynchronousStateException()

InvalidAsynchronousStateException(String)

Source:
InvalidAsynchronousStateException.cs
Source:
InvalidAsynchronousStateException.cs
Source:
InvalidAsynchronousStateException.cs

使用指定的详细说明初始化 InvalidAsynchronousStateException 类的新实例。

public:
 InvalidAsynchronousStateException(System::String ^ message);
public InvalidAsynchronousStateException (string? message);
public InvalidAsynchronousStateException (string message);
new System.ComponentModel.InvalidAsynchronousStateException : string -> System.ComponentModel.InvalidAsynchronousStateException
Public Sub New (message As String)

参数

message
String

错误的详细说明。

另请参阅

适用于

InvalidAsynchronousStateException(SerializationInfo, StreamingContext)

Source:
InvalidAsynchronousStateException.cs
Source:
InvalidAsynchronousStateException.cs
Source:
InvalidAsynchronousStateException.cs

注意

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

使用给定的 SerializationInfoStreamingContext初始化 InvalidAsynchronousStateException 类的新实例。

protected:
 InvalidAsynchronousStateException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected InvalidAsynchronousStateException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected InvalidAsynchronousStateException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.ComponentModel.InvalidAsynchronousStateException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ComponentModel.InvalidAsynchronousStateException
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.ComponentModel.InvalidAsynchronousStateException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ComponentModel.InvalidAsynchronousStateException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

要用于反序列化的 SerializationInfo

context
StreamingContext

要用于反序列化的目标。

属性

另请参阅

适用于

InvalidAsynchronousStateException(String, Exception)

Source:
InvalidAsynchronousStateException.cs
Source:
InvalidAsynchronousStateException.cs
Source:
InvalidAsynchronousStateException.cs

使用指定的详细说明和指定的异常初始化 InvalidAsynchronousStateException 类的新实例。

public:
 InvalidAsynchronousStateException(System::String ^ message, Exception ^ innerException);
public InvalidAsynchronousStateException (string? message, Exception? innerException);
public InvalidAsynchronousStateException (string message, Exception innerException);
new System.ComponentModel.InvalidAsynchronousStateException : string * Exception -> System.ComponentModel.InvalidAsynchronousStateException
Public Sub New (message As String, innerException As Exception)

参数

message
String

错误的详细说明。

innerException
Exception

对此异常原因的内部异常的引用。

另请参阅

适用于