ClientBase<TChannel>.ChannelBase<T>.ICommunicationObject.BeginClose 方法

定义

开始一个操作以关闭通信对象。

重载

ICommunicationObject.BeginClose(AsyncCallback, Object)

开始一个异步操作以关闭通信对象。

ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object)

开始一个异步操作以在指定超时时间内关闭通信对象。

ICommunicationObject.BeginClose(AsyncCallback, Object)

Source:
ClientBase.cs
Source:
ClientBase.cs
Source:
ClientBase.cs

开始一个异步操作以关闭通信对象。

 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)

Source:
ClientBase.cs
Source:
ClientBase.cs
Source:
ClientBase.cs

开始一个异步操作以在指定超时时间内关闭通信对象。

 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

接收异步关闭操作完成通知的 AsyncCallback 委托。

state
Object

一个由应用程序指定的对象,它包含与异步关闭操作相关联的状态信息。

返回

引用异步关闭操作的 IAsyncResult

实现

适用于