Export (0) Print
Expand All

HttpWebRequest::Finalize Method

.NET Framework 3.5

Releases all resources used by the HttpWebRequest.

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

protected:
virtual void Finalize() override

This method overrides Object::Finalize. Application code should not call this method; an object's Finalize method is automatically invoked during garbage collection, unless finalization by the garbage collector has been disabled by a call to the GC::SuppressFinalize method.

The HttpWebRequest class finalizer releases all managed resources associated with the HttpWebRequest. The finalizer does not release any unmanaged resources.

For more information about using the Finalize method, see Finalize Methods and Destructors, Cleaning Up Unmanaged Resources, and Overriding the Finalize Method.

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Compact Framework

Supported in: 3.5, 2.0, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft