CommunicationObject.OnEndOpen(IAsyncResult) Method

Definition

Completes an asynchronous operation on the open of a communication object.

protected:
 abstract void OnEndOpen(IAsyncResult ^ result);
protected abstract void OnEndOpen (IAsyncResult result);
abstract member OnEndOpen : IAsyncResult -> unit
Protected MustOverride Sub OnEndOpen (result As IAsyncResult)

Parameters

result
IAsyncResult

The IAsyncResult that is returned by a call to the OnEndOpen(IAsyncResult) method.

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

The EndOpen method calls OnEndOpen (and OnOpened).

Applies to