共用方式為


AnnouncementClient.ICommunicationObject.BeginOpen 方法

定義

開始非同步作業以開啟通訊物件。

多載

ICommunicationObject.BeginOpen(AsyncCallback, Object)

開始非同步作業以開啟通訊物件。

ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object)

開始非同步作業,開啟有已指定時間間隔的通訊物件。

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

實作

適用於

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

實作

適用於