HttpRequestMessageExtensions.DisposeRequestResources Method
Disposes of all tracked resources associated with the request which were added via the RegisterForDispose method.
Namespace: System.Net.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Sub DisposeRequestResources ( _
request As HttpRequestMessage _
)
'Usage
Dim request As HttpRequestMessage
request.DisposeRequestResources()
public static void DisposeRequestResources(
this HttpRequestMessage request
)
[ExtensionAttribute]
public:
static void DisposeRequestResources(
HttpRequestMessage^ request
)
static member DisposeRequestResources :
request:HttpRequestMessage -> unit
public static function DisposeRequestResources(
request : HttpRequestMessage
)
Parameters
request
Type: HttpRequestMessageThe HTTP request.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type HttpRequestMessage. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.108) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.108).