Dispose Method (Boolean)
Collapse the table of content
Expand the table of content

GeoCoordinateWatcher.Dispose Method (Boolean)

.NET Framework 4.6 and 4.5

Releases all resources used by the current instance of the GeoCoordinateWatcher class.

Namespace:   System.Device.Location
Assembly:  System.Device (in System.Device.dll)

protected virtual void Dispose(
	bool disposing


Type: System.Boolean

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Call Dispose when you are finished using the T:System.Device.Location.GeoCoordinateWatcher class.

This method should be called so that unmanaged resources can be freed.

For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.

.NET Framework
Available since 4.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2015 Microsoft