ClientBase<TChannel>.ICommunicationObject.BeginClose Method

Definition

開始非同步作業以關閉 ClientBase<TChannel>Begins an asynchronous operation to close the ClientBase<TChannel>.

Overloads

ICommunicationObject.BeginClose(AsyncCallback, Object)

開始非同步作業以關閉 ClientBase<TChannel>Begins an asynchronous operation to close the ClientBase<TChannel>.

ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object)

開始非同步作業以關閉具有指定逾時的 ClientBase<TChannel>Begins an asynchronous operation to close the ClientBase<TChannel> with a specified timeout.

ICommunicationObject.BeginClose(AsyncCallback, Object)

開始非同步作業以關閉 ClientBase<TChannel>Begins an asynchronous operation to close the 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

Parameters

callback
AsyncCallback

完成時接收回呼的方法。The method that receives the callback on completion.

state
Object

狀態資料。The state data.

Returns

IAsyncResult

參考非同步關閉作業的 IAsyncResultThe IAsyncResult that references the asynchronous close operation.

Implements

Remarks

如需詳細資訊,請參閱 System.ServiceModel.Channels.CommunicationObjectFor more information, see System.ServiceModel.Channels.CommunicationObject.

ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object)

開始非同步作業以關閉具有指定逾時的 ClientBase<TChannel>Begins an asynchronous operation to close the ClientBase<TChannel> with a specified timeout.

 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

Parameters

timeout
TimeSpan

必須完成呼叫的期間。The period within which the call must complete.

callback
AsyncCallback

作業完成時叫用的回呼物件。The callback object invoked when the operation completes.

state
Object

狀態資料。The state data.

Returns

IAsyncResult

參考非同步開始關閉作業的 IAsyncResultThe IAsyncResult that references the asynchronous begin close operation.

Implements

Remarks

如需詳細資訊,請參閱 System.ServiceModel.Channels.CommunicationObjectFor more information, see System.ServiceModel.Channels.CommunicationObject.

Applies to