แก้ไข

แชร์ผ่าน


ChannelClosedException Constructors

Definition

Overloads

ChannelClosedException()

Initializes a new instance of the ChannelClosedException class.

ChannelClosedException(Exception)

Initializes a new instance of the ChannelClosedException class.

ChannelClosedException(String)

Initializes a new instance of the ChannelClosedException class.

ChannelClosedException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the ChannelClosedException class with serialized data.

ChannelClosedException(String, Exception)

Initializes a new instance of the ChannelClosedException class.

ChannelClosedException()

Source:
ChannelClosedException.cs
Source:
ChannelClosedException.cs
Source:
ChannelClosedException.cs
Source:
ChannelClosedException.cs

Initializes a new instance of the ChannelClosedException class.

public:
 ChannelClosedException();
public ChannelClosedException ();
Public Sub New ()

Applies to

ChannelClosedException(Exception)

Source:
ChannelClosedException.cs
Source:
ChannelClosedException.cs
Source:
ChannelClosedException.cs
Source:
ChannelClosedException.cs

Initializes a new instance of the ChannelClosedException class.

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)

Parameters

innerException
Exception

The exception that is the cause of this exception.

Applies to

ChannelClosedException(String)

Source:
ChannelClosedException.cs
Source:
ChannelClosedException.cs
Source:
ChannelClosedException.cs
Source:
ChannelClosedException.cs

Initializes a new instance of the ChannelClosedException class.

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)

Parameters

message
String

The message that describes the error.

Applies to

ChannelClosedException(SerializationInfo, StreamingContext)

Source:
ChannelClosedException.netcoreapp.cs
Source:
ChannelClosedException.netcoreapp.cs
Source:
ChannelClosedException.netcoreapp.cs
Source:
ChannelClosedException.netcoreapp.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 ChannelClosedException class with serialized data.

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

Parameters

info
SerializationInfo

The object that holds the serialized object data.

context
StreamingContext

The contextual information about the source or destination.

Attributes

Applies to

ChannelClosedException(String, Exception)

Source:
ChannelClosedException.cs
Source:
ChannelClosedException.cs
Source:
ChannelClosedException.cs
Source:
ChannelClosedException.cs

Initializes a new instance of the ChannelClosedException class.

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)

Parameters

message
String

The message that describes the error.

innerException
Exception

The exception that is the cause of this exception.

Applies to