Mono Class Library: System.Net.HttpWebResponse Overview | Members

System.Net.HttpWebResponse.Dispose Method

Releases the unmanaged resources used by the current instance and optionally releases the managed resources. [Edit]

protected virtual void Dispose (bool disposing)

Parameters

disposing
true to release both managed and unmanaged resources; false to release only unmanaged resources. [Edit]

Remarks

Operation
When disposing is true, this method releases all resources held by any managed objects that the current instance references.

Note to Inheritors
When overriding HttpWebResponse.Dispose(bool)(bool), be careful not to reference objects that have been previously disposed in an earlier call to HttpWebResponse.Dispose(bool) as HttpWebResponse.Dispose(bool) may be called multiple times by other objects. .

[Edit]

Requirements

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