ClientBase<TChannel>.ChannelBase<T> 類別

定義

代表泛型 ChannelBase 類別。Represents the generic ChannelBase class.

generic <typename T>
 where TChannel : class where T : classpublic protected ref class ClientBase<TChannel>::ChannelBase : IDisposable, System::ServiceModel::Channels::IOutputChannel, System::ServiceModel::Channels::IRequestChannel, System::ServiceModel::IClientChannel, System::ServiceModel::IExtensibleObject<System::ServiceModel::IContextChannel ^>
protected internal 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 Friend Class ClientBase(Of TChannel).ChannelBase(Of T)
Implements IClientChannel, IDisposable, IExtensibleObject(Of IContextChannel), IOutputChannel, IRequestChannel

類型參數

TChannel
T

泛型類別。The generic class.

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

備註

重要

使用不信任的資料呼叫此類別的方法,會造成安全性上的風險。Calling methods from this class with untrusted data is a security risk. 呼叫此類別的方法時,請一律使用信任的資料。Call the methods from this class only with trusted data. 如需詳細資訊,請參閱資料驗證For more information, see Data Validation.

建構函式

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

從現有的類別執行個體初始化 ClientBase<TChannel>.ChannelBase<T> 類別的新執行個體。Initializes a new instance of the ClientBase<TChannel>.ChannelBase<T> class from an existing instance of the class.

屬性

AllowInitializationUI
AllowOutputBatching
DidInteractiveInitialization
InputSession
LocalAddress
OperationTimeout
OutputSession
RemoteAddress
SessionId
Via

方法

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

依據名稱啟動指定之方法的非同步呼叫。Starts an asynchronous call of a specified method by name.

DisplayInitializationUI()
Dispose()
EndDisplayInitializationUI(IAsyncResult)
EndInvoke(String, Object[], IAsyncResult)

依據指定方法的名稱完成非同步叫用。Completes an asynchronous invocation by name of a specified method.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
Invoke(String, Object[])
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

事件

UnknownMessageReceived

明確介面實作

IChannel.GetProperty<TProperty>()

如果在通道堆疊的適當層次中有的話,傳回要求的型別物件。Returns a typed object requested, if present from the appropriate layer in the channel stack.

IClientChannel.AllowInitializationUI

取得或設定值,這個值指出用戶端通道是否允許初始化 UI。Gets or sets a value that indicates whether the client channel allows an initialization UI.

IClientChannel.BeginDisplayInitializationUI(AsyncCallback, Object)

要開始使用使用者介面來取得認證資訊的非同步呼叫。An asynchronous call to begin using a user interface to obtain credential information.

IClientChannel.DidInteractiveInitialization

取得值,指出是否已呼叫使用者介面,以取得認證資訊。Gets a value that indicates whether a call was done to a user interface to obtain credential information.

IClientChannel.DisplayInitializationUI()

指定使用者介面的呼叫以取得認證資訊。Specifies a call to a user interface to obtain credential information.

IClientChannel.EndDisplayInitializationUI(IAsyncResult)

當 BeginDisplayInitializationUI 的呼叫已完成時呼叫。Called when the call to BeginDisplayInitializationUI has finished.

IClientChannel.UnknownMessageReceived

當 ClientBase 物件接收到未知的訊息時,會叫用的事件處理常式。The event handler that is invoked when the ClientBase object receives an unknown message.

IClientChannel.Via

取得包含在用戶端通道上傳送訊息之目標傳輸位址的 URI。Gets the URI that contains the transport address to which messages are sent on the client channel.

ICommunicationObject.Abort()

導致通訊物件立即從目前的狀態轉換為已關閉狀態。Causes a communication object to transition immediately from its current state into the closed state.

ICommunicationObject.BeginClose(AsyncCallback, Object)

開始非同步作業以關閉通訊物件。Begins an asynchronous operation to close a communication object.

ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object)

開始非同步作業,關閉有已指定逾時的通訊物件。Begins an asynchronous operation to close a communication object with a specified time-out.

ICommunicationObject.BeginOpen(AsyncCallback, Object)

開始非同步作業以開啟通訊物件。Begins an asynchronous operation to open a communication object.

ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object)

開始非同步作業,開啟有已指定時間間隔的通訊物件。Begins an asynchronous operation to open a communication object within a specified interval of time.

ICommunicationObject.Close()

導致通訊物件從目前的狀態轉換為已關閉狀態。Causes a communication object to transition from its current state into the closed state.

ICommunicationObject.Close(TimeSpan)

導致通訊物件從目前的狀態轉換為已關閉狀態。Causes a communication object to transition from its current state into the closed state.

ICommunicationObject.Closed

當 ClientBase 物件從目前狀態轉換為已關閉狀態時叫用的事件處理常式。The event handler that is invoked when the ClientBase object has transitioned from its current state to the closed state.

ICommunicationObject.Closing

當 ClientBase 物件從目前狀態轉換為已關閉狀態時叫用的事件處理常式。The event handler that is invoked when the ClientBase object transitions from its current state to the closed state.

ICommunicationObject.EndClose(IAsyncResult)

完成非同步作業以關閉通訊物件。Completes an asynchronous operation to close a communication object.

ICommunicationObject.EndOpen(IAsyncResult)

完成非同步作業以開啟通訊物件。Completes an asynchronous operation to open a communication object.

ICommunicationObject.Faulted

當針對 ClientBase 物件執行作業發生錯誤時叫用的事件處理常式。The event handler that is invoked when fault occurs while performing an operation on the ClientBase object.

ICommunicationObject.Open()

導致通訊物件從已建立狀態轉換為已開啟狀態。Causes a communication object to transition from the created state into the opened state.

ICommunicationObject.Open(TimeSpan)

在指定時間間隔內,讓通訊物件從已建立狀態轉換為已開啟狀態。Causes a communication object to transition from the created state into the opened state within a specified interval of time.

ICommunicationObject.Opened

當 ClientBase 物件從已建立狀態轉換為已開啟狀態時叫用的事件處理常式。The event handler that is invoked when the ClientBase object has transitioned from the created state to the opened state.

ICommunicationObject.Opening

當 ClientBase 物件從已建立狀態轉換為已開啟狀態時叫用的事件處理常式。The event handler that is invoked when the ClientBase object transitions from the created state to the opened state.

ICommunicationObject.State

取得通訊導向物件的目前狀態。Gets the current state of the communication-oriented object.

IContextChannel.AllowOutputBatching

取得或設定值,指出是否允許連出訊息的批次處理,否則為 false。Gets or sets a value that indicates whether the batching of outgoing messages is allowed; otherwise, false.

IContextChannel.InputSession

取得通道的輸入工作階段。Gets the input session for the channel.

IContextChannel.LocalAddress

取得通道的本機端點。Gets the local endpoint for the channel.

IContextChannel.OperationTimeout

取得或設定作業必須完成的期間,否則會擲回例外狀況。Gets or sets the time period within which an operation must complete or an exception is thrown.

IContextChannel.OutputSession

取得與通道相關聯的輸出工作階段 (如果有的話)。Gets the output session associated with the channel, if any.

IContextChannel.RemoteAddress

取得與通道關聯的遠端位址。Gets the remote address associated with the channel.

IContextChannel.SessionId

取得目前工作階段的識別項 (如果有)。Gets an identifier for the current session, if any.

IDisposable.Dispose()

執行釋放 (Free)、釋放 (Release) 或重設與通道相關聯之 Unmanaged 資源的應用程式定義工作。Performs application-defined tasks with freeing, releasing, or resetting unmanaged resources associated with the channel.

IExtensibleObject<IContextChannel>.Extensions

取得這個可擴充物件的擴充功能物件集合。Gets a collection of extension objects for this extensible object.

IOutputChannel.BeginSend(Message, AsyncCallback, Object)

開始非同步作業,將訊息傳送到輸出通道的目的端。Begins an asynchronous operation to transmit a message to the destination of the output channel.

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

開始非同步作業,於指定的時間間隔內將訊息傳送給輸出通道的目的端。Begins an asynchronous operation to transmit a message to the destination of the output channel within a specified interval of time.

IOutputChannel.EndSend(IAsyncResult)

完成非同步作業,將訊息傳送到輸出通道的目的端。Completes an asynchronous operation to transmit a message to the destination of the output channel.

IOutputChannel.RemoteAddress

取得輸出通道上訊息傳送之目的服務的目的端。Gets the destination of the service to which messages are sent out on the output channel.

IOutputChannel.Send(Message)

將訊息傳送到輸出通道的目的端。Transmits a message to the destination of the output channel.

IOutputChannel.Send(Message, TimeSpan)

於指定的時間間隔內在目前的輸出通道上傳送訊息。Sends a message on the current output channel within a specified interval of time.

IOutputChannel.Via

取得包含輸出通道上訊息之目標傳輸位址的 URI。Gets the URI that contains the transport address to which messages are sent on the output channel.

IRequestChannel.BeginRequest(Message, AsyncCallback, Object)

開始非同步作業,以便將要求訊息傳輸至要求-回覆訊息交換的回覆端。Begins an asynchronous operation to transmit a request message to the reply-side of a request-reply message exchange.

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

開始非同步作業,以便在指定的時間間隔內,將要求訊息傳輸至要求-回覆訊息交換的回覆端。Begins an asynchronous operation to transmit a request message to the reply-side of a request-reply message exchange within a specified interval of time.

IRequestChannel.EndRequest(IAsyncResult)

完成非同步作業,以便傳回傳輸之要求的訊息型回應。Completes an asynchronous operation to return a message-based response to a transmitted request.

IRequestChannel.RemoteAddress

取得輸出通道上訊息傳送之目的服務的目的端。Gets the destination of the service to which messages are sent out on the output channel.

IRequestChannel.Request(Message)

傳送訊息型要求,並傳回相互關聯的訊息型回應。Sends a message-based request and returns the correlated message-based response.

IRequestChannel.Request(Message, TimeSpan)

傳送訊息型要求,並在指定的時間間隔內傳回相互關聯的訊息型回應。Sends a message-based request and returns the correlated message-based response within a specified interval of time.

IRequestChannel.Via

取得傳送此要求的目標傳輸位址。Gets the transport address to which the request is sent.

適用於