共用方式為


ChannelClosedException 建構函式

定義

多載

ChannelClosedException()

初始化 ChannelClosedException 類別的新執行個體。

ChannelClosedException(Exception)

初始化 ChannelClosedException 類別的新執行個體。

ChannelClosedException(String)

初始化 ChannelClosedException 類別的新執行個體。

ChannelClosedException(SerializationInfo, StreamingContext)
已淘汰.

使用序列化資料,初始化 ChannelClosedException 類別的新執行個體。

ChannelClosedException(String, Exception)

初始化 ChannelClosedException 類別的新執行個體。

ChannelClosedException()

來源:
ChannelClosedException.cs
來源:
ChannelClosedException.cs
來源:
ChannelClosedException.cs
來源:
ChannelClosedException.cs

初始化 ChannelClosedException 類別的新執行個體。

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

適用於

ChannelClosedException(Exception)

來源:
ChannelClosedException.cs
來源:
ChannelClosedException.cs
來源:
ChannelClosedException.cs
來源:
ChannelClosedException.cs

初始化 ChannelClosedException 類別的新執行個體。

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)

參數

innerException
Exception

造成這個例外狀況的例外狀況。

適用於

ChannelClosedException(String)

來源:
ChannelClosedException.cs
來源:
ChannelClosedException.cs
來源:
ChannelClosedException.cs
來源:
ChannelClosedException.cs

初始化 ChannelClosedException 類別的新執行個體。

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)

參數

message
String

描述錯誤的訊息。

適用於

ChannelClosedException(SerializationInfo, StreamingContext)

來源:
ChannelClosedException.netcoreapp.cs
來源:
ChannelClosedException.netcoreapp.cs
來源:
ChannelClosedException.netcoreapp.cs
來源:
ChannelClosedException.netcoreapp.cs

警告

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

使用序列化資料,初始化 ChannelClosedException 類別的新執行個體。

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)

參數

info
SerializationInfo

存放序列物件資料的物件。

context
StreamingContext

關於來源或目的端的內容資訊。

屬性

適用於

ChannelClosedException(String, Exception)

來源:
ChannelClosedException.cs
來源:
ChannelClosedException.cs
來源:
ChannelClosedException.cs
來源:
ChannelClosedException.cs

初始化 ChannelClosedException 類別的新執行個體。

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)

參數

message
String

描述錯誤的訊息。

innerException
Exception

造成這個例外狀況的例外狀況。

適用於