ClientBase<TChannel>.ICommunicationObject.BeginOpen Method

Definition

開始非同步作業以開啟 ClientBase<TChannel> 物件。Begins an asynchronous operation to open the ClientBase<TChannel> object.

Overloads

ICommunicationObject.BeginOpen(AsyncCallback, Object)

開始非同步作業以開啟 ClientBase<TChannel> 物件。Begins an asynchronous operation to open the ClientBase<TChannel> object.

ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object)

開始非同步作業以在指定的時間間隔內開啟 ClientBase<TChannel> 物件。Begins an asynchronous operation to open the ClientBase<TChannel> object within a specified interval of time.

ICommunicationObject.BeginOpen(AsyncCallback, Object)

開始非同步作業以開啟 ClientBase<TChannel> 物件。Begins an asynchronous operation to open the ClientBase<TChannel> 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

完成時接收回呼的方法。The method that receives the callback on completion.

state
Object

狀態資料。The state data.

Returns

IAsyncResult

參考非同步開啟作業的 IAsyncResultThe IAsyncResult that references the asynchronous open operation.

Implements

Remarks

如需詳細資訊,請參閱 System.ServiceModel.Channels.CommunicationObjectFor more information, see System.ServiceModel.Channels.CommunicationObject.

ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object)

開始非同步作業以在指定的時間間隔內開啟 ClientBase<TChannel> 物件。Begins an asynchronous operation to open the ClientBase<TChannel> 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 time within which the call must complete.

callback
AsyncCallback

完成時接收回呼的方法。The method that receives the callback on completion.

state
Object

狀態資料。The state data.

Returns

IAsyncResult

參考非同步開啟作業的 IAsyncResultThe IAsyncResult that references the asynchronous open operation.

Implements

Remarks

如需詳細資訊,請參閱 System.ServiceModel.Channels.CommunicationObjectFor more information, see System.ServiceModel.Channels.CommunicationObject.

Applies to