InvalidAsynchronousStateException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 InvalidAsynchronousStateException 类的新实例。
重载
InvalidAsynchronousStateException()
初始化 InvalidAsynchronousStateException 类的新实例。
public:
InvalidAsynchronousStateException();
public InvalidAsynchronousStateException ();
Public Sub New ()
另请参阅
- WindowsFormsSynchronizationContext
- Send(SendOrPostCallback, Object)
- AsyncOperation
- AsyncOperationManager
- SynchronizationContext
- 基于事件的异步模式(EAP)
适用于
InvalidAsynchronousStateException(String)
使用指定的详细说明初始化 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
错误的详细说明。
另请参阅
- WindowsFormsSynchronizationContext
- Send(SendOrPostCallback, Object)
- AsyncOperation
- AsyncOperationManager
- SynchronizationContext
- 基于事件的异步模式(EAP)
适用于
InvalidAsynchronousStateException(SerializationInfo, StreamingContext)
注意
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
使用给定的 SerializationInfo 和 StreamingContext初始化 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
要用于反序列化的目标。
- 属性
另请参阅
- WindowsFormsSynchronizationContext
- Send(SendOrPostCallback, Object)
- AsyncOperation
- AsyncOperationManager
- SynchronizationContext
- 基于事件的异步模式(EAP)
适用于
InvalidAsynchronousStateException(String, Exception)
使用指定的详细说明和指定的异常初始化 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
对此异常原因的内部异常的引用。
另请参阅
- WindowsFormsSynchronizationContext
- Send(SendOrPostCallback, Object)
- AsyncOperation
- AsyncOperationManager
- SynchronizationContext
- 基于事件的异步模式(EAP)