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
'Declaração
Public Sub Dispose
public void Dispose()
Implements
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.
Note
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.