語言

ChannelClosedException 建構函式

定義

多載

名稱 Description
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.cs
來源:
ChannelClosedException.cs
來源:
ChannelClosedException.cs

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

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

適用於

ChannelClosedException(Exception)

來源:
ChannelClosedException.cs
來源:
ChannelClosedException.cs
來源:
ChannelClosedException.cs
來源:
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.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.netstandard21.cs
來源:
ChannelClosedException.netstandard21.cs
來源:
ChannelClosedException.netstandard21.cs
來源:
ChannelClosedException.netcoreapp.cs
來源:
ChannelClosedException.netcoreapp.cs
來源:
ChannelClosedException.netstandard21.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);
[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)

參數

info
SerializationInfo

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

context
StreamingContext

關於來源或目的地的上下文資訊。

屬性

適用於

ChannelClosedException(String, Exception)

來源:
ChannelClosedException.cs
來源:
ChannelClosedException.cs
來源:
ChannelClosedException.cs
來源:
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

這個例外就是這個例外的原因。

適用於