共用方式為


DiscoveryClient.ICommunicationObject.BeginClose 方法

定義

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

多載

ICommunicationObject.BeginClose(AsyncCallback, Object)

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

ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object)

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

ICommunicationObject.BeginClose(AsyncCallback, Object)

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

 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

AsyncCallback 委派,這個委派會接收完成非同步關閉作業的通知。

state
Object

應用程式所指定的物件,其中包含與非同步關閉作業關聯的狀態資訊。

傳回

參考非同步關閉作業的 IAsyncResult

實作

適用於

ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object)

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

 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

TimeSpan,指定必須在逾時前多久完成傳送作業。

callback
AsyncCallback

AsyncCallback 委派,這個委派會接收完成非同步關閉作業的通知。

state
Object

應用程式所指定的物件,其中包含與非同步關閉作業關聯的狀態資訊。

傳回

參考非同步關閉作業的 IAsyncResult

實作

適用於