InvalidAsynchronousStateException Konstruktorer

Definition

Initierar en ny instans av InvalidAsynchronousStateException klassen.

Överlagringar

Name Description
InvalidAsynchronousStateException()

Initierar en ny instans av InvalidAsynchronousStateException klassen.

InvalidAsynchronousStateException(String)

Initierar en ny instans av InvalidAsynchronousStateException klassen med den angivna detaljerade beskrivningen.

InvalidAsynchronousStateException(SerializationInfo, StreamingContext)
Föråldrad.

Initierar en ny instans av InvalidAsynchronousStateException klassen med angivet SerializationInfo och StreamingContext.

InvalidAsynchronousStateException(String, Exception)

Initierar en ny instans av InvalidAsynchronousStateException klassen med den angivna detaljerade beskrivningen och det angivna undantaget.

InvalidAsynchronousStateException(String)

Källa:
InvalidAsynchronousStateException.cs
Källa:
InvalidAsynchronousStateException.cs
Källa:
InvalidAsynchronousStateException.cs
Källa:
InvalidAsynchronousStateException.cs
Källa:
InvalidAsynchronousStateException.cs

Initierar en ny instans av InvalidAsynchronousStateException klassen med den angivna detaljerade beskrivningen.

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)

Parametrar

message
String

En detaljerad beskrivning av felet.

Se även

Gäller för

InvalidAsynchronousStateException(SerializationInfo, StreamingContext)

Källa:
InvalidAsynchronousStateException.cs
Källa:
InvalidAsynchronousStateException.cs
Källa:
InvalidAsynchronousStateException.cs
Källa:
InvalidAsynchronousStateException.cs
Källa:
InvalidAsynchronousStateException.cs

Varning

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

Initierar en ny instans av InvalidAsynchronousStateException klassen med angivet SerializationInfo och StreamingContext.

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);
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}")>]
new System.ComponentModel.InvalidAsynchronousStateException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ComponentModel.InvalidAsynchronousStateException
new System.ComponentModel.InvalidAsynchronousStateException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ComponentModel.InvalidAsynchronousStateException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parametrar

info
SerializationInfo

Som SerializationInfo ska användas för deserialisering.

context
StreamingContext

Målet som ska användas för deserialisering.

Attribut

Se även

Gäller för

InvalidAsynchronousStateException(String, Exception)

Källa:
InvalidAsynchronousStateException.cs
Källa:
InvalidAsynchronousStateException.cs
Källa:
InvalidAsynchronousStateException.cs
Källa:
InvalidAsynchronousStateException.cs
Källa:
InvalidAsynchronousStateException.cs

Initierar en ny instans av InvalidAsynchronousStateException klassen med den angivna detaljerade beskrivningen och det angivna undantaget.

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)

Parametrar

message
String

En detaljerad beskrivning av felet.

innerException
Exception

En referens till det inre undantaget som är orsaken till det här undantaget.

Se även

Gäller för