ICommunicationObject.EndOpen(IAsyncResult) 方法

定義

完成非同步作業以開啟通訊物件。Completes an asynchronous operation to open a communication object.

public:
 void EndOpen(IAsyncResult ^ result);
public void EndOpen (IAsyncResult result);
abstract member EndOpen : IAsyncResult -> unit
Public Sub EndOpen (result As IAsyncResult)

參數

result
IAsyncResult

IAsyncResult,在呼叫 BeginOpen 方法時所傳回。The IAsyncResult that is returned by a call to the BeginOpen method.

例外狀況

ICommunicationObject 無法開啟,而且已進入 Faulted 狀態。The ICommunicationObject was unable to be opened and has entered the Faulted state.

經過逾時時間之後,ICommunicationObject 就可以進入 Opened 狀態,而且也已進入 Faulted 狀態。The timeout elapsed before the ICommunicationObject was able to enter the Opened state and has entered the Faulted state.

適用於