InvalidAsynchronousStateException 建構函式

定義

初始化 InvalidAsynchronousStateException 類別的新執行個體。

多載

InvalidAsynchronousStateException()

初始化 InvalidAsynchronousStateException 類別的新執行個體。

InvalidAsynchronousStateException(String)

使用指定的詳細描述來初始化 InvalidAsynchronousStateException 類別的新執行個體。

InvalidAsynchronousStateException(SerializationInfo, StreamingContext)
已淘汰.

使用指定的 InvalidAsynchronousStateExceptionSerializationInfo,初始化 StreamingContext 類別的新執行個體。

InvalidAsynchronousStateException(String, Exception)

使用指定的詳細描述和指定的例外狀況,初始化 InvalidAsynchronousStateException 類別的新執行個體。

InvalidAsynchronousStateException()

來源:
InvalidAsynchronousStateException.cs
來源:
InvalidAsynchronousStateException.cs
來源:
InvalidAsynchronousStateException.cs

初始化 InvalidAsynchronousStateException 類別的新執行個體。

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

另請參閱

適用於

InvalidAsynchronousStateException(String)

來源:
InvalidAsynchronousStateException.cs
來源:
InvalidAsynchronousStateException.cs
來源:
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)

來源:
InvalidAsynchronousStateException.cs
來源:
InvalidAsynchronousStateException.cs
來源:
InvalidAsynchronousStateException.cs

警告

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

使用指定的 InvalidAsynchronousStateExceptionSerializationInfo,初始化 StreamingContext 類別的新執行個體。

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

要用於還原序列化 (Deserialization) 的 SerializationInfo

context
StreamingContext

要用於還原序列化的目的端。

屬性

另請參閱

適用於

InvalidAsynchronousStateException(String, Exception)

來源:
InvalidAsynchronousStateException.cs
來源:
InvalidAsynchronousStateException.cs
來源:
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

造成這個例外狀況之內部例外狀況的參考。

另請參閱

適用於