Start Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Allows this instance to receive incoming requests.
Namespace: System.Net
Assembly: System.Http (in System.Http.dll)
Syntax
'Declaration
Public Sub Start
public void Start()
public:
void Start()
member Start : unit -> unit
public function Start()
Remarks
This method must be called before you call the GetContext method.
After you have started an HttpListener object, you can use the Stop method to stop it.
Note
If this listener instance uses https, you must install and select a Server Certificate. Otherwise, an HttpWebRequest query of this HttpListener will fail with an unexpected close of the connection. You can configure Server Certificates and other listener options by using HttpCfg.exe. See https://msdn.microsoft.com/library/default.asp?url=/library/en-us/http/http/httpcfg_exe.asp for more details.
.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.