Abort Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Shuts down the HttpListener object immediately, discarding all currently queued requests.
Namespace: System.Net
Assembly: System.Http (in System.Http.dll)
Syntax
'Declaration
Public Sub Abort
public void Abort()
public:
void Abort()
member Abort : unit -> unit
public function Abort()
Remarks
This method disposes of all resources held by this listener. Any pending requests are unable to complete.
After calling this method, you will receive an ObjectDisposedException if you attempt to use this HttpListener.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.