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.

适用于