ClientBase<TChannel>.ChannelBase<T>.ICommunicationObject.BeginOpen Method

Definition

开始一个操作以打开通信对象。Begins an operation to open a communication object.

Overloads

ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object)

开始一个异步操作以在指定时间间隔内打开通信对象。Begins an asynchronous operation to open a communication object within a specified interval of time.

ICommunicationObject.BeginOpen(AsyncCallback, Object)

开始执行异步操作,以打开通信对象。Begins an asynchronous operation to open a communication object.

ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object)

开始一个异步操作以在指定时间间隔内打开通信对象。Begins an asynchronous operation to open a communication object within a specified interval of time.

 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

Parameters

timeout
TimeSpan

指定在超时前必须完成发送操作的时间的时间跨度。The timespan that specifies how long the send operation has to complete before timing out.

callback
AsyncCallback

接收异步打开操作完成通知的 AsyncCallback 委托。The AsyncCallback delegate that receives notification of the completion of the asynchronous open operation.

state
Object

一个由应用程序指定的对象,它包含与异步打开操作相关联的状态信息。An object, specified by the application, that contains state information associated with the asynchronous open operation.

Returns

IAsyncResult

引用异步打开操作的 IAsyncResultThe IAsyncResult that references the asynchronous open operation.

Implements

ICommunicationObject.BeginOpen(AsyncCallback, Object)

开始执行异步操作,以打开通信对象。Begins an asynchronous operation to open a communication 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

Parameters

callback
AsyncCallback

接收异步打开操作完成通知的 AsyncCallback 委托。The AsyncCallback delegate that receives notification of the completion of the asynchronous open operation.

state
Object

一个由应用程序指定的对象,它包含与异步打开操作相关联的状态信息。An object, specified by the application, that contains state information associated with the asynchronous open operation.

Returns

IAsyncResult

引用异步打开操作的 IAsyncResultThe IAsyncResult that references the asynchronous open operation.

Implements

Applies to