共用方式為


Channel<TWrite,TRead> 類別

定義

提供通道的基底類別,該通道支援讀取型別 TRead 的元素和寫入型別 TWrite 的元素。

generic <typename TWrite, typename TRead>
public ref class Channel abstract
public abstract class Channel<TWrite,TRead>
type Channel<'Write, 'Read> = class
Public MustInherit Class Channel(Of TWrite, TRead)

類型參數

TWrite

指定可能寫入通道的資料型別。

TRead

指定可從通道讀取的資料類型。

繼承
Channel<TWrite,TRead>
衍生

建構函式

名稱 Description
Channel<TWrite,TRead>()

初始化 Channel<TWrite,TRead> 類別的執行個體。

屬性

名稱 Description
Reader

取得此通道可讀取的一面。

Writer

取得此通道可寫入的一面。

方法

名稱 Description
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

操作員

名稱 Description
Implicit(Channel<TWrite,TRead> to ChannelReader<TRead>)

Channel<TWrite,TRead> 隱含轉換成其可讀取的一面。

Implicit(Channel<TWrite,TRead> to ChannelWriter<TWrite>)

Channel<TWrite,TRead> 隱含轉換成其可寫入的一面。

適用於