共用方式為


ExternalSettingsManager.Dispose Method

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

Namespace:  Microsoft.VisualStudio.Settings
Assemblies:   Microsoft.VisualStudio.Settings.11.0 (in Microsoft.VisualStudio.Settings.11.0.dll)
  Microsoft.VisualStudio.Settings (in Microsoft.VisualStudio.Settings.dll)

Syntax

'宣告
Public Sub Dispose
public void Dispose()

Implements

IDisposable.Dispose()

Remarks

When you are finished using a ExternalSettingsManager instance, call Dispose. The Dispose method leaves the ExternalSettingsManager instance in an unusable state. After you call Dispose, you must release all references to the ExternalSettingsManager instance so that the garbage collector can reclaim the memory that the instance was occupying.

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

注意

Always call Dispose before you release the last reference to the ExternalSettingsManager instance. Otherwise, the resources it is using will not be freed until the garbage collector calls the Finalize method of the ExternalSettingsManager instance.

.NET Framework Security

See Also

Reference

ExternalSettingsManager Class

Microsoft.VisualStudio.Settings Namespace