Causes a communication object to transition immediately from its current state into the closing state.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
This method indicates that any unfinished work should be ignored or ungracefully terminated before returning. The method can be used to cancel any outstanding operations, including outstanding calls to Close.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC