ChannelClosedException Konstruktorer
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Överlagringar
| Name | Description |
|---|---|
| ChannelClosedException() |
Initierar en ny instans av ChannelClosedException klassen. |
| ChannelClosedException(Exception) |
Initierar en ny instans av ChannelClosedException klassen. |
| ChannelClosedException(String) |
Initierar en ny instans av ChannelClosedException klassen. |
| ChannelClosedException(SerializationInfo, StreamingContext) |
Föråldrad.
Initierar en ny instans av ChannelClosedException klassen med serialiserade data. |
| ChannelClosedException(String, Exception) |
Initierar en ny instans av ChannelClosedException klassen. |
ChannelClosedException()
Initierar en ny instans av ChannelClosedException klassen.
public:
ChannelClosedException();
public ChannelClosedException();
Public Sub New ()
Gäller för
ChannelClosedException(Exception)
Initierar en ny instans av ChannelClosedException klassen.
public:
ChannelClosedException(Exception ^ innerException);
public ChannelClosedException(Exception? innerException);
public ChannelClosedException(Exception innerException);
new System.Threading.Channels.ChannelClosedException : Exception -> System.Threading.Channels.ChannelClosedException
Public Sub New (innerException As Exception)
Parametrar
- innerException
- Exception
Undantaget som är orsaken till det här undantaget.
Gäller för
ChannelClosedException(String)
Initierar en ny instans av ChannelClosedException klassen.
public:
ChannelClosedException(System::String ^ message);
public ChannelClosedException(string? message);
public ChannelClosedException(string message);
new System.Threading.Channels.ChannelClosedException : string -> System.Threading.Channels.ChannelClosedException
Public Sub New (message As String)
Parametrar
- message
- String
Meddelandet som beskriver felet.
Gäller för
ChannelClosedException(SerializationInfo, StreamingContext)
Varning
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
Initierar en ny instans av ChannelClosedException klassen med serialiserade data.
protected:
ChannelClosedException(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 ChannelClosedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected ChannelClosedException(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.Threading.Channels.ChannelClosedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Threading.Channels.ChannelClosedException
new System.Threading.Channels.ChannelClosedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Threading.Channels.ChannelClosedException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parametrar
- info
- SerializationInfo
Objektet som innehåller serialiserade objektdata.
- context
- StreamingContext
Sammanhangsinformation om källan eller målet.
- Attribut
Gäller för
ChannelClosedException(String, Exception)
Initierar en ny instans av ChannelClosedException klassen.
public:
ChannelClosedException(System::String ^ message, Exception ^ innerException);
public ChannelClosedException(string? message, Exception? innerException);
public ChannelClosedException(string message, Exception innerException);
new System.Threading.Channels.ChannelClosedException : string * Exception -> System.Threading.Channels.ChannelClosedException
Public Sub New (message As String, innerException As Exception)
Parametrar
- message
- String
Meddelandet som beskriver felet.
- innerException
- Exception
Undantaget som är orsaken till det här undantaget.