Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ICommunicationObject.Abort Method ()


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

Causes a communication object to transition immediately from its current state into the closed state.

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

void Abort()

This method indicates that any unfinished work should be ignored or ungracefully terminated before returning. The Abort method can be used to cancel any outstanding operations, including outstanding calls to Close.

To gracefully transition an ICommunicationObject from the Opened state to the Closed state call Close.

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