InvalidAsynchronousStateException Constructors

Definition

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()

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

Initializes a new instance of the InvalidAsynchronousStateException class.

C#
public InvalidAsynchronousStateException();

See also

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

InvalidAsynchronousStateException(String)

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

Initializes a new instance of the InvalidAsynchronousStateException class with the specified detailed description.

C#
public InvalidAsynchronousStateException(string? message);
C#
public InvalidAsynchronousStateException(string message);

Parameters

message
String

A detailed description of the error.

See also

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

InvalidAsynchronousStateException(SerializationInfo, StreamingContext)

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

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.

C#
[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);
C#
protected InvalidAsynchronousStateException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);

Parameters

info
SerializationInfo

The SerializationInfo to be used for deserialization.

context
StreamingContext

The destination to be used for deserialization.

Attributes

See also

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie (Zastarané)
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7 (8, 9, 10)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

InvalidAsynchronousStateException(String, Exception)

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

Initializes a new instance of the InvalidAsynchronousStateException class with the specified detailed description and the specified exception.

C#
public InvalidAsynchronousStateException(string? message, Exception? innerException);
C#
public InvalidAsynchronousStateException(string message, Exception innerException);

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

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1