ExternalSettingsManager Class
An implementation of the SettingsManager class that allows applications to access settings from Visual Studio or an isolated shell, either of which is selected by its AppID.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Settings.SettingsManager
Microsoft.VisualStudio.Settings.ExternalSettingsManager
Namespace: Microsoft.VisualStudio.Settings
Assembly: Microsoft.VisualStudio.Settings (in Microsoft.VisualStudio.Settings.dll)
Syntax
'Declaration
Public NotInheritable Class ExternalSettingsManager _
Inherits SettingsManager _
Implements IDisposable
public sealed class ExternalSettingsManager : SettingsManager,
IDisposable
public ref class ExternalSettingsManager sealed : public SettingsManager,
IDisposable
[<Sealed>]
type ExternalSettingsManager =
class
inherit SettingsManager
interface IDisposable
end
public final class ExternalSettingsManager extends SettingsManager implements IDisposable
The ExternalSettingsManager type exposes the following members.
Methods
Name | Description | |
---|---|---|
CreateForApplication(String) | Used to construct the SettingsManager for AppID-based Visual Studio applications. | |
CreateForApplication(String, Boolean) | Used to construct the SettingsManager for AppID-based Visual Studio applications. | |
CreateForApplication(String, String) | Used to construct the SettingsManager for AppID-based Visual Studio applications that use suffixed mode. In suffixed mode, any changes to the settings are isolated from the normal running mode. | |
CreateForApplication(String, String, Boolean) | Used to construct the SettingsManager for AppID-based Visual Studio applications that use suffixed mode. In suffixed mode, any changes to the settings are isolated from the normal running mode. | |
CreateForIsolatedApplication(String, String) | Used to construct the SettingsManager for AppEnv-based Visual Studio custom applications. Custom applications are isolated among themselves. | |
CreateForIsolatedApplication(String, String, Boolean) | Used to construct the SettingsManager for AppEnv-based Visual Studio custom applications. Custom applications are isolated among themselves. | |
Dispose | Releases the resources that are used by the current instance of the ExternalSettingsManager class. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetApplicationDataFolder | Returns the folder that Visual Studio uses for storing various files such as cache files, backup files, and template files (Overrides SettingsManager.GetApplicationDataFolder(ApplicationDataFolder).) | |
GetCollectionScopes | Outputs the scopes that contain the given collection. (Overrides SettingsManager.GetCollectionScopes(String).) | |
GetCommonExtensionsSearchPaths | Returns the list of folders that Visual Studio uses to install or look for machine-wide extensions. (Overrides SettingsManager.GetCommonExtensionsSearchPaths().) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetPropertyScopes | Outputs the scopes that contain the given property. (Overrides SettingsManager.GetPropertyScopes(String, String).) | |
GetReadOnlySettingsStore | Provides the SettingsStore class for the requested scope which can be used for read-only operations. (Overrides SettingsManager.GetReadOnlySettingsStore(SettingsScope).) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetWritableSettingsStore | Provides the WritableSettingsStore class for the requested scope which can be used for reading operations and writing operations. (Overrides SettingsManager.GetWritableSettingsStore(SettingsScope).) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
By using this class, you can search for properties and collections in different scopes. It contains references to the SettingsStore class and the WritableSettingsStore class for further manipulation of the properties and collections in the scopes.
This class implements the IDisposable pattern. Therefore, it must be disposed after it is no longer required.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.