共用方式為


ClientBase<TChannel>.ICommunicationObject.BeginClose 方法

定義

開始非同步作業以關閉 ClientBase<TChannel>

多載

ICommunicationObject.BeginClose(AsyncCallback, Object)

開始非同步作業以關閉 ClientBase<TChannel>

ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object)

開始非同步作業以關閉具有指定逾時的 ClientBase<TChannel>

ICommunicationObject.BeginClose(AsyncCallback, Object)

來源:
ClientBase.cs
來源:
ClientBase.cs

開始非同步作業以關閉 ClientBase<TChannel>

 virtual IAsyncResult ^ System.ServiceModel.ICommunicationObject.BeginClose(AsyncCallback ^ callback, System::Object ^ state) = System::ServiceModel::ICommunicationObject::BeginClose;
IAsyncResult ICommunicationObject.BeginClose (AsyncCallback callback, object state);
abstract member System.ServiceModel.ICommunicationObject.BeginClose : AsyncCallback * obj -> IAsyncResult
override this.System.ServiceModel.ICommunicationObject.BeginClose : AsyncCallback * obj -> IAsyncResult
Function BeginClose (callback As AsyncCallback, state As Object) As IAsyncResult Implements ICommunicationObject.BeginClose

參數

callback
AsyncCallback

完成時接收回呼的方法。

state
Object

狀態資料。

傳回

參考非同步關閉作業的 IAsyncResult

實作

備註

如需詳細資訊,請參閱System.ServiceModel.Channels.CommunicationObject

適用於

ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object)

來源:
ClientBase.cs
來源:
ClientBase.cs

開始非同步作業以關閉具有指定逾時的 ClientBase<TChannel>

 virtual IAsyncResult ^ System.ServiceModel.ICommunicationObject.BeginClose(TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state) = System::ServiceModel::ICommunicationObject::BeginClose;
IAsyncResult ICommunicationObject.BeginClose (TimeSpan timeout, AsyncCallback callback, object state);
abstract member System.ServiceModel.ICommunicationObject.BeginClose : TimeSpan * AsyncCallback * obj -> IAsyncResult
override this.System.ServiceModel.ICommunicationObject.BeginClose : TimeSpan * AsyncCallback * obj -> IAsyncResult
Function BeginClose (timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult Implements ICommunicationObject.BeginClose

參數

timeout
TimeSpan

必須完成呼叫的期間。

callback
AsyncCallback

作業完成時叫用的回呼物件。

state
Object

狀態資料。

傳回

參考非同步開始關閉作業的 IAsyncResult

實作

備註

如需詳細資訊,請參閱System.ServiceModel.Channels.CommunicationObject

適用於