Partager via


HttpSelfHostServer.CloseAsync Method

Closes the current HttpServer instance.

Namespace:  System.Web.Http.SelfHost
Assembly:  System.Web.Http.SelfHost (in System.Web.Http.SelfHost.dll)

Syntax

'Declaration
Public Function CloseAsync As Task
'Usage
Dim instance As HttpSelfHostServer
Dim returnValue As Task

returnValue = instance.CloseAsync()
public Task CloseAsync()
public:
Task^ CloseAsync()
member CloseAsync : unit -> Task 
public function CloseAsync() : Task

Return Value

Type: System.Threading.Tasks.Task
A Task representing the asynchronous HttpServer close operation.

See Also

Reference

HttpSelfHostServer Class

System.Web.Http.SelfHost Namespace