IClientChannel 介面

定義

定義用戶端應用程式所使用之傳出要求和要求/回覆通道的行為。

public interface class IClientChannel : IDisposable, System::ServiceModel::IContextChannel, System::ServiceModel::IExtensibleObject<System::ServiceModel::IContextChannel ^>
public interface IClientChannel : IDisposable, System.ServiceModel.IContextChannel, System.ServiceModel.IExtensibleObject<System.ServiceModel.IContextChannel>
type IClientChannel = interface
    interface IDisposable
    interface IChannel
    interface ICommunicationObject
    interface IContextChannel
    interface IExtensibleObject<IContextChannel>
type IClientChannel = interface
    interface IDisposable
    interface IContextChannel
    interface IChannel
    interface ICommunicationObject
    interface IExtensibleObject<IContextChannel>
type IClientChannel = interface
    interface IContextChannel
    interface IChannel
    interface ICommunicationObject
    interface IExtensibleObject<IContextChannel>
    interface IDisposable
type IClientChannel = interface
    interface IContextChannel
    interface ICommunicationObject
    interface IDisposable
    interface IChannel
    interface IExtensibleObject<IContextChannel>
Public Interface IClientChannel
Implements IContextChannel, IDisposable, IExtensibleObject(Of IContextChannel)
衍生
實作

備註

IClientChannel 介面會定義由 ChannelFactory<TChannel>.CreateChannel 的呼叫所傳回之所有通道支援的作業。 您可以使用 IClientChannel 方法和屬性來檢查並修改傳出型別通道。 ServiceModel 中繼資料公用程式工具 (Svcutil.exe) 藉由建立繼承自目標服務合約和 IClientChannel 的合約介面來匯出 ClientBase<TChannel> 類別和服務合約介面,讓您能夠同時使用擴充合約做為服務的 Proxy 以及存取用戶端通道。

如需詳細資訊,請參閱 WCF 用戶端架構。 如需所產生用戶端程式代碼檔案中外觀的範例,請參閱 瞭解產生的用戶端程式代碼

屬性

AllowInitializationUI

取得或設定值,這個值表示 DisplayInitializationUI() 是否嘗試呼叫 IInteractiveChannelInitializer 屬性中的 InteractiveChannelInitializers 物件,或者是否擲回 (如果該集合不是空白的話)。

AllowOutputBatching

取得或設定值,這個值會指示 Windows Communication Foundation (WCF) 在將訊息送交傳輸之前,先儲存一組訊息。

(繼承來源 IContextChannel)
DidInteractiveInitialization

取得值,這個值表示是否已呼叫使用者介面,以取得認證資訊。

Extensions

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

(繼承來源 IExtensibleObject<T>)
InputSession

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

(繼承來源 IContextChannel)
LocalAddress

取得通道的本機端點。

(繼承來源 IContextChannel)
OperationTimeout

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

(繼承來源 IContextChannel)
OutputSession

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

(繼承來源 IContextChannel)
RemoteAddress

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

(繼承來源 IContextChannel)
SessionId

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

(繼承來源 IContextChannel)
State

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

(繼承來源 ICommunicationObject)
Via

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

方法

Abort()

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

(繼承來源 ICommunicationObject)
BeginClose(AsyncCallback, Object)

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

(繼承來源 ICommunicationObject)
BeginClose(TimeSpan, AsyncCallback, Object)

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

(繼承來源 ICommunicationObject)
BeginDisplayInitializationUI(AsyncCallback, Object)

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

BeginOpen(AsyncCallback, Object)

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

(繼承來源 ICommunicationObject)
BeginOpen(TimeSpan, AsyncCallback, Object)

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

(繼承來源 ICommunicationObject)
Close()

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

(繼承來源 ICommunicationObject)
Close(TimeSpan)

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

(繼承來源 ICommunicationObject)
DisplayInitializationUI()

呼叫使用者介面來取得認證資訊。

Dispose()

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

(繼承來源 IDisposable)
EndClose(IAsyncResult)

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

(繼承來源 ICommunicationObject)
EndDisplayInitializationUI(IAsyncResult)

當呼叫 BeginDisplayInitializationUI(AsyncCallback, Object) 已完成時呼叫。

EndOpen(IAsyncResult)

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

(繼承來源 ICommunicationObject)
GetProperty<T>()

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

(繼承來源 IChannel)
Open()

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

(繼承來源 ICommunicationObject)
Open(TimeSpan)

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

(繼承來源 ICommunicationObject)

事件

Closed

當通訊物件從關閉中狀態轉換為已關閉狀態完成時發生。

(繼承來源 ICommunicationObject)
Closing

當通訊物件第一次進入關閉中狀態時發生。

(繼承來源 ICommunicationObject)
Faulted

當通訊物件第一次進入錯誤狀態時發生。

(繼承來源 ICommunicationObject)
Opened

當通訊物件從開啟中狀態轉換為已開啟狀態結束時發生。

(繼承來源 ICommunicationObject)
Opening

當通訊物件第一次進入開啟中狀態時發生。

(繼承來源 ICommunicationObject)
UnknownMessageReceived

這是保留的事件。

適用於