CommunicationObject.EndOpen(IAsyncResult) 方法
定义
完成一个异步操作以打开通信对象。Completes an asynchronous operation to open a communication object.
public:
virtual void EndOpen(IAsyncResult ^ result);
public void EndOpen (IAsyncResult result);
abstract member EndOpen : IAsyncResult -> unit
override this.EndOpen : IAsyncResult -> unit
Public Sub EndOpen (result As IAsyncResult)
参数
- result
- IAsyncResult
IAsyncResult,由对 BeginClose 方法的调用返回。The IAsyncResult that is returned by a call to the BeginClose method.
实现
例外
通信对象未处于 Opened 或 Opening 状态,因此无法修改。The communication object is not in a Opened or Opening state and cannot be modified.
通信对象处于 Closing 或 Closed 状态,因此无法修改。The communication object is in a Closing or Closed state and cannot be modified.
在操作完成之前超出了分配给该操作的默认时间间隔。The default interval of time that was allotted for the operation was exceeded before the operation was completed.
注解
此方法的同步版本由 Open 方法提供。A synchronous version of this method is provided by the Open method.