ICommunicationObject.EndClose Method (IAsyncResult)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Completes an asynchronous operation to close a communication object.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

void EndClose(
	IAsyncResult result
)

Parameters

result
Type: System.IAsyncResult

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

Exception Condition
CommunicationObjectFaultedException

BeginClose was called on an object in the Faulted state.

TimeoutException

The timeout elapsed before the ICommunicationObject was able to close gracefully.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: