ClientBase<TChannel>.ChannelBase<T> 類別

定義

代表泛型 ChannelBase 類別。

protected: generic <typename T>
 where TChannel : class where T : classref class ClientBase<TChannel>::ChannelBase : IDisposable, System::ServiceModel::Channels::IOutputChannel, System::ServiceModel::Channels::IRequestChannel, System::ServiceModel::IClientChannel, System::ServiceModel::IExtensibleObject<System::ServiceModel::IContextChannel ^>
protected class ClientBase<TChannel>.ChannelBase<T> : IDisposable, System.ServiceModel.Channels.IOutputChannel, System.ServiceModel.Channels.IRequestChannel, System.ServiceModel.IClientChannel, System.ServiceModel.IExtensibleObject<System.ServiceModel.IContextChannel> where TChannel : class where T : class
Protected Class ClientBase(Of TChannel).ChannelBase(Of T)
Implements IClientChannel, IDisposable, IExtensibleObject(Of IContextChannel), IOutputChannel, IRequestChannel

類型參數

TChannel
T

泛型類別。

繼承
ClientBase<TChannel>.ChannelBase<T>
實作

備註

重要

使用不信任的資料呼叫此類別的方法,會造成安全性上的風險。 呼叫此類別的方法時,請一律使用信任的資料。 如需詳細資訊,請參閱 驗證所有輸入

建構函式

ClientBase<TChannel>.ChannelBase<T>(ClientBase<T>)

從現有的類別執行個體初始化 ClientBase<TChannel>.ChannelBase<T> 類別的新執行個體。

方法

BeginInvoke(String, Object[], AsyncCallback, Object)

依據名稱啟動指定之方法的非同步呼叫。

EndInvoke(String, Object[], IAsyncResult)

依據指定方法的名稱完成非同步叫用。

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

明確介面實作

IChannel.GetProperty<TProperty>()

如果在通道堆疊的適當層次中有的話,傳回要求的型別物件。

IClientChannel.AllowInitializationUI

取得或設定值,這個值指出用戶端通道是否允許初始化 UI。

IClientChannel.BeginDisplayInitializationUI(AsyncCallback, Object)

要開始使用使用者介面來取得認證資訊的非同步呼叫。

IClientChannel.DidInteractiveInitialization

取得值,指出是否已呼叫使用者介面,以取得認證資訊。

IClientChannel.DisplayInitializationUI()

指定使用者介面的呼叫以取得認證資訊。

IClientChannel.EndDisplayInitializationUI(IAsyncResult)

當 BeginDisplayInitializationUI 的呼叫已完成時呼叫。

IClientChannel.UnknownMessageReceived

當 ClientBase 物件接收到未知的訊息時,會叫用的事件處理常式。

IClientChannel.Via

取得包含在用戶端通道上傳送訊息之目標傳輸位址的 URI。

ICommunicationObject.Abort()

導致通訊物件立即從目前的狀態轉換為已關閉狀態。

ICommunicationObject.BeginClose(AsyncCallback, Object)

開始非同步作業以關閉通訊物件。

ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object)

開始非同步作業,關閉有已指定逾時的通訊物件。

ICommunicationObject.BeginOpen(AsyncCallback, Object)

開始非同步作業以開啟通訊物件。

ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object)

開始非同步作業,開啟有已指定時間間隔的通訊物件。

ICommunicationObject.Close()

導致通訊物件從目前的狀態轉換為已關閉狀態。

ICommunicationObject.Close(TimeSpan)

導致通訊物件從目前的狀態轉換為已關閉狀態。

ICommunicationObject.Closed

當 ClientBase 物件從目前狀態轉換為已關閉狀態時叫用的事件處理常式。

ICommunicationObject.Closing

當 ClientBase 物件從目前狀態轉換為已關閉狀態時叫用的事件處理常式。

ICommunicationObject.EndClose(IAsyncResult)

完成非同步作業以關閉通訊物件。

ICommunicationObject.EndOpen(IAsyncResult)

完成非同步作業以開啟通訊物件。

ICommunicationObject.Faulted

當針對 ClientBase 物件執行作業發生錯誤時叫用的事件處理常式。

ICommunicationObject.Open()

導致通訊物件從已建立狀態轉換為已開啟狀態。

ICommunicationObject.Open(TimeSpan)

在指定時間間隔內,讓通訊物件從已建立狀態轉換為已開啟狀態。

ICommunicationObject.Opened

當 ClientBase 物件從已建立狀態轉換為已開啟狀態時叫用的事件處理常式。

ICommunicationObject.Opening

當 ClientBase 物件從已建立狀態轉換為已開啟狀態時叫用的事件處理常式。

ICommunicationObject.State

取得通訊導向物件的目前狀態。

IContextChannel.AllowOutputBatching

取得或設定值,指出是否允許連出訊息的批次處理,否則為 false。

IContextChannel.InputSession

取得通道的輸入工作階段。

IContextChannel.LocalAddress

取得通道的本機端點。

IContextChannel.OperationTimeout

取得或設定作業必須完成的期間,否則會擲回例外狀況。

IContextChannel.OutputSession

取得與通道關聯的輸出工作階段 (如果有)。

IContextChannel.RemoteAddress

取得與通道相關聯的遠端位址。

IContextChannel.SessionId

取得目前工作階段的識別項 (如果有)。

IDisposable.Dispose()

執行釋放 (Free)、釋放 (Release) 或重設與通道相關聯之 Unmanaged 資源的應用程式定義工作。

IExtensibleObject<IContextChannel>.Extensions

取得這個可擴充物件的擴充功能物件集合。

IOutputChannel.BeginSend(Message, AsyncCallback, Object)

開始非同步作業,將訊息傳送到輸出通道的目的端。

IOutputChannel.BeginSend(Message, TimeSpan, AsyncCallback, Object)

開始非同步作業,於指定的時間間隔內將訊息傳送給輸出通道的目的端。

IOutputChannel.EndSend(IAsyncResult)

完成非同步作業,將訊息傳送到輸出通道的目的端。

IOutputChannel.RemoteAddress

取得輸出通道上訊息傳送之目的服務的目的端。

IOutputChannel.Send(Message)

將訊息傳送到輸出通道的目的端。

IOutputChannel.Send(Message, TimeSpan)

於指定的時間間隔內在目前的輸出通道上傳送訊息。

IOutputChannel.Via

取得包含輸出通道上訊息之目標傳輸位址的 URI。

IRequestChannel.BeginRequest(Message, AsyncCallback, Object)

開始非同步作業,以便將要求訊息傳輸至要求-回覆訊息交換的回覆端。

IRequestChannel.BeginRequest(Message, TimeSpan, AsyncCallback, Object)

開始非同步作業,以便在指定的時間間隔內,將要求訊息傳輸至要求-回覆訊息交換的回覆端。

IRequestChannel.EndRequest(IAsyncResult)

完成非同步作業,以便傳回傳輸之要求的訊息型回應。

IRequestChannel.RemoteAddress

取得輸出通道上訊息傳送之目的服務的目的端。

IRequestChannel.Request(Message)

傳送訊息型要求,並傳回相互關聯的訊息型回應。

IRequestChannel.Request(Message, TimeSpan)

傳送訊息型要求,並在指定的時間間隔內傳回相互關聯的訊息型回應。

IRequestChannel.Via

取得傳送此要求的目標傳輸位址。

擴充方法

CloseHelperAsync(ICommunicationObject, TimeSpan)

代表泛型 ChannelBase 類別。

OpenHelperAsync(ICommunicationObject, TimeSpan)

代表泛型 ChannelBase 類別。

適用於