DiscoveryClient.ICommunicationObject.BeginOpen 方法

定义

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

重载

ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object)

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

ICommunicationObject.BeginOpen(AsyncCallback, Object)

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

ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object)

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

 virtual IAsyncResult ^ System.ServiceModel.ICommunicationObject.BeginOpen(TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state) = System::ServiceModel::ICommunicationObject::BeginOpen;
IAsyncResult ICommunicationObject.BeginOpen (TimeSpan timeout, AsyncCallback callback, object state);
abstract member System.ServiceModel.ICommunicationObject.BeginOpen : TimeSpan * AsyncCallback * obj -> IAsyncResult
override this.System.ServiceModel.ICommunicationObject.BeginOpen : TimeSpan * AsyncCallback * obj -> IAsyncResult
Function BeginOpen (timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult Implements ICommunicationObject.BeginOpen

参数

timeout
TimeSpan

TimeSpan,指定在超时前必须完成发送操作的时间。

callback
AsyncCallback

接收异步打开操作完成通知的 AsyncCallback 委托。

state
Object

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

返回

IAsyncResult

引用异步打开操作的 IAsyncResult

实现

适用于

ICommunicationObject.BeginOpen(AsyncCallback, Object)

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

 virtual IAsyncResult ^ System.ServiceModel.ICommunicationObject.BeginOpen(AsyncCallback ^ callback, System::Object ^ state) = System::ServiceModel::ICommunicationObject::BeginOpen;
IAsyncResult ICommunicationObject.BeginOpen (AsyncCallback callback, object state);
abstract member System.ServiceModel.ICommunicationObject.BeginOpen : AsyncCallback * obj -> IAsyncResult
override this.System.ServiceModel.ICommunicationObject.BeginOpen : AsyncCallback * obj -> IAsyncResult
Function BeginOpen (callback As AsyncCallback, state As Object) As IAsyncResult Implements ICommunicationObject.BeginOpen

参数

callback
AsyncCallback

接收异步打开操作完成通知的 AsyncCallback 委托。

state
Object

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

返回

IAsyncResult

引用异步打开操作的 IAsyncResult

实现

适用于