HttpListener..::..EndGetContext Method
Ends an asynchronous operation to get an incoming request.
Namespace:
WebSocketSharp.NetAssembly: C-DEngine (in C-DEngine.dll)
Syntax
public HttpListenerContext EndGetContext( IAsyncResult asyncResult )
Public Function EndGetContext ( _ asyncResult As IAsyncResult _ ) As HttpListenerContext
public: HttpListenerContext^ EndGetContext( IAsyncResult^ asyncResult )
Parameters
- asyncResult
- Type: IAsyncResult
An IAsyncResult obtained by calling the BeginGetContext method.
Return Value
A HttpListenerContext that represents a request.Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | asyncResult is nullNothingnullptra null reference (Nothing in Visual Basic). |
| ArgumentException | asyncResult wasn't obtained by calling the BeginGetContext method. |
| InvalidOperationException | This method was already called for the specified asyncResult. |
| ObjectDisposedException | This listener has been closed. |