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

See Also

Reference

HttpListener Class

System.Net Namespace