Waits for an incoming request and returns when one is received.
Assembly: System (in System.dll)
A Win32 function call failed. Check the exception's ErrorCode property to determine the cause of the exception.
This object has not been started or is currently stopped.
The HttpListener does not have any Uniform Resource Identifier (URI) prefixes to respond to. See Remarks.
This object is closed.
Before calling this method, you must call the Start method and add at least one URI prefix to listen for by adding the URI strings to the HttpListenerPrefixCollection returned by the Prefixes property. For a detailed description of prefixes, see the HttpListener class overview.
This method blocks while waiting for an incoming request. If you want incoming requests to be processed asynchronously (on separate threads) so that your application does not block, use the BeginGetContext method.Notes to Callers
This member outputs trace information when you enable network tracing in your application. For more information, see Network Tracing.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2