AnnouncementClient.ICommunicationObject.BeginOpen 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
開始非同步作業以開啟通訊物件。
多載
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
參數
- callback
- AsyncCallback
AsyncCallback 委派,這個委派會接收非同步開啟作業完成的通知。
- state
- Object
應用程式所指定的物件,其中包含與非同步開啟作業相關聯的狀態資訊。
傳回
參考非同步開啟作業的 IAsyncResult。