Επεξεργασία

Κοινή χρήση μέσω


CommunicationObject.EndOpen(IAsyncResult) Method

Definition

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)

Parameters

result
IAsyncResult

The IAsyncResult that is returned by a call to the BeginClose method.

Implements

Exceptions

The communication object is not in a Opened or Opening state and cannot be modified.

The communication object is in a Closing or Closed state and cannot be modified.

The communication object is in a Faulted state and cannot be modified.

The default interval of time that was allotted for the operation was exceeded before the operation was completed.

Remarks

A synchronous version of this method is provided by the Open method.

Applies to