Edit

Share via


CommunicationObject.OnEndClose(IAsyncResult) Method

Definition

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

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

Parameters

result
IAsyncResult

The IAsyncResult that is returned by a call to the OnEndClose(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 EndClose(IAsyncResult) method calls OnEndClose(IAsyncResult) if the communication object is not already in a Closed state.

Applies to