ClientBase<TChannel>.ICommunicationObject.BeginClose 方法

定义

开始一个关闭 ClientBase<TChannel> 的异步操作。

重载

ICommunicationObject.BeginClose(AsyncCallback, Object)

开始一个关闭 ClientBase<TChannel> 的异步操作。

ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object)

开始一个在指定超时内关闭 ClientBase<TChannel> 的异步操作。

ICommunicationObject.BeginClose(AsyncCallback, Object)

Source:
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)

Source:
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

适用于