Επεξεργασία

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


CommunicationObject.EndClose(IAsyncResult) Method

Definition

Completes an asynchronous operation to close a communication object.

public:
 virtual void EndClose(IAsyncResult ^ result);
public void EndClose (IAsyncResult result);
abstract member EndClose : IAsyncResult -> unit
override this.EndClose : IAsyncResult -> unit
Public Sub EndClose (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 Close method.

Applies to