Bagikan melalui


HttpMessageHandler.Dispose Method (Boolean)

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

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

Syntax

'Declaration
Protected Overridable Sub Dispose ( _
    disposing As Boolean _
)
'Usage
Dim disposing As Boolean 

Me.Dispose(disposing)
protected virtual void Dispose(
    bool disposing
)
protected:
virtual void Dispose(
    bool disposing
)
abstract Dispose : 
        disposing:bool -> unit  
override Dispose : 
        disposing:bool -> unit
protected function Dispose(
    disposing : boolean
)

Parameters

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

See Also

Reference

HttpMessageHandler Class

Dispose Overload

System.Net.Http Namespace