DiscoveryClient.ICommunicationObject.BeginClose 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
开始一个异步操作以关闭通信对象。
重载
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
参数
- callback
- AsyncCallback
接收异步关闭操作完成通知的 AsyncCallback 委托。
- state
- Object
一个由应用程序指定的对象,它包含与异步关闭操作相关联的状态信息。
返回
引用异步关闭操作的 IAsyncResult。