Прочетете на английски Редактиране

Споделяне чрез


GeoCoordinateWatcher.Dispose Method

Definition

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

Overloads

Dispose()

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

Dispose(Boolean)

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

Remarks

Call Dispose when you are finished using the 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.

Dispose()

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

C#
public void Dispose();

Implements

Remarks

Call Dispose when you are finished using the 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.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Dispose(Boolean)

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

C#
protected virtual void Dispose(bool disposing);

Parameters

disposing
Boolean

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

Remarks

Call Dispose when you are finished using the 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.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1