Export (0) Print
Expand All

CommunicationObject.Abort Method

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

Namespace: System.ServiceModel.Channels
Assembly: System.ServiceModel (in system.servicemodel.dll)

public void Abort ()
public final void Abort ()
public final function Abort ()
Not applicable.

Exception typeCondition

InvalidOperationException

CommunicationObject base class method not called.

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 a CommunicationObject from any state other than Closed into the Closed state, call Close or one of its asynchronous versions, BeginClose.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft