EndClose Method
Collapse the table of content
Expand the table of content

ICommunicationObject.EndClose Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.

ExceptionCondition
CommunicationObjectFaultedException

BeginClose was called on an object in the Faulted state.

TimeoutException

The time-out elapsed before the ICommunicationObject was able to close gracefully.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft