InvalidAsynchronousStateException 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 InvalidAsynchronousStateException class.
Overloads
InvalidAsynchronousStateException() |
Initializes a new instance of the InvalidAsynchronousStateException class. |
InvalidAsynchronousStateException(String) |
Initializes a new instance of the InvalidAsynchronousStateException class with the specified detailed description. |
InvalidAsynchronousStateException(SerializationInfo, StreamingContext) |
Obsolete.
Initializes a new instance of the InvalidAsynchronousStateException class with the given SerializationInfo and StreamingContext. |
InvalidAsynchronousStateException(String, Exception) |
Initializes a new instance of the InvalidAsynchronousStateException class with the specified detailed description and the specified exception. |
InvalidAsynchronousStateException()
Initializes a new instance of the InvalidAsynchronousStateException class.
public:
InvalidAsynchronousStateException();
public InvalidAsynchronousStateException ();
Public Sub New ()
See also
- WindowsFormsSynchronizationContext
- Send(SendOrPostCallback, Object)
- AsyncOperation
- AsyncOperationManager
- SynchronizationContext
- Event-based Asynchronous Pattern (EAP)
Applies to
InvalidAsynchronousStateException(String)
Initializes a new instance of the InvalidAsynchronousStateException class with the specified detailed description.
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)
Parameters
- message
- String
A detailed description of the error.
See also
- WindowsFormsSynchronizationContext
- Send(SendOrPostCallback, Object)
- AsyncOperation
- AsyncOperationManager
- SynchronizationContext
- Event-based Asynchronous Pattern (EAP)
Applies to
InvalidAsynchronousStateException(SerializationInfo, StreamingContext)
Caution
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
Initializes a new instance of the InvalidAsynchronousStateException class with the given SerializationInfo and 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)
Parameters
- info
- SerializationInfo
The SerializationInfo to be used for deserialization.
- context
- StreamingContext
The destination to be used for deserialization.
- Attributes
See also
- WindowsFormsSynchronizationContext
- Send(SendOrPostCallback, Object)
- AsyncOperation
- AsyncOperationManager
- SynchronizationContext
- Event-based Asynchronous Pattern (EAP)
Applies to
InvalidAsynchronousStateException(String, Exception)
Initializes a new instance of the InvalidAsynchronousStateException class with the specified detailed description and the specified exception.
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)
Parameters
- message
- String
A detailed description of the error.
- innerException
- Exception
A reference to the inner exception that is the cause of this exception.
See also
- WindowsFormsSynchronizationContext
- Send(SendOrPostCallback, Object)
- AsyncOperation
- AsyncOperationManager
- SynchronizationContext
- Event-based Asynchronous Pattern (EAP)