Windows apps
Collapse the table of content
Expand the table of content

HttpClient.Dispose Method (Boolean)

Releases the unmanaged resources used by the HttpClient and optionally disposes of the managed resources.

Namespace:  System.Net.Http
Assembly:  System.Net.Http (in System.Net.Http.dll)

protected override void Dispose(
	bool disposing
)

Parameters

disposing
Type: System.Boolean
true to release both managed and unmanaged resources; false to releases only unmanaged resources.

For a complete example of using the HttpClient class, see Calling a Web API From a .NET Client

Show:
© 2017 Microsoft