MonoMac.Foundation.NSUrl.Dispose Method
Releases the resourced used by the NSUrl object.

Syntax

protected override void Dispose (bool disposing)

Parameters

disposing
If set to true, the method is invoked directly and will dispose manage and unmanaged resources; If set to false the method is being called by the garbage collector finalizer and should only release unmanaged resources.

Remarks

This Dispose method releases the resources used by the NSUrl class.

This method is called by both the Dispose() method and the object finalizer (Finalize). When invoked by the Dispose method, the parameter disposting disposing is set to true and any managed object references that this object holds are also disposed or released; when invoked by the object finalizer, on the finalizer thread the value is set to false.

Calling the Dispose method when you are finished using the NSUrl ensures that all external resources used by this managed object are released as soon as possible. Once you have invoked the Dispose method, the object is no longer useful and you should no longer make any calls to it.

For more information on how to override this method and on the Dispose/IDisposable pattern, read the ``Implementing a Dispose Method'' document at http://msdn.microsoft.com/en-us/library/fs2xkftw.aspx

Requirements

Namespace: MonoMac.Foundation
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0