Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
HttpListener Methods

HttpListener Methods

The HttpListener type exposes the following members.

  Name Description
Public method Abort Shuts down the HttpListener object immediately, discarding all currently queued requests.
Public method BeginGetContext Begins asynchronously retrieving an incoming request.
Public method Close Shuts down the HttpListener.
Public method EndGetContext Completes an asynchronous operation to retrieve an incoming client request.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetContext Waits for an incoming request and returns when one is received.
Public method GetContextAsync Waits for an incoming request as an asynchronous operation.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Start Allows this instance to receive incoming requests.
Public method Stop Causes this instance to stop receiving incoming requests.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

  Name Description
Explicit interface implemetation Private method IDisposable.Dispose Infrastructure. Releases the resources held by this HttpListener object.
© 2015 Microsoft