Share via


SettingsManager Class

Represents the settings stored in Visual Studio.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Settings.SettingsManager
    Microsoft.VisualStudio.Settings.ExternalSettingsManager
    Microsoft.VisualStudio.Shell.Settings.ShellSettingsManager

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

Syntax

'Declaration
Public MustInherit Class SettingsManager
public abstract class SettingsManager
public ref class SettingsManager abstract
[<AbstractClass>]
type SettingsManager =  class end
public abstract class SettingsManager

The SettingsManager type exposes the following members.

Constructors

  Name Description
Protected method SettingsManager

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetApplicationDataFolder Returns the folder that Visual Studio uses for storing various files such as cache files, backup files, and template files.
Public method GetCollectionScopes Outputs the scopes that contain the given collection.
Public method GetCommonExtensionsSearchPaths Returns the list of folders that Visual Studio uses to install or look for machine-wide extensions.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetPropertyScopes Outputs the scopes that contain the given property.
Public method GetReadOnlySettingsStore Provides the SettingsStore class for the requested scope which can be used for read-only operations.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetWritableSettingsStore Provides the WritableSettingsStore class for the requested scope which can be used for reading operations and writing operations.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method 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.

SettingsManager is an abstract base class. The ExternalSettingsManager class implements SettingsManager and allows applications to access settings in Visual Studio or an isolated shell.

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.

See Also

Reference

Microsoft.VisualStudio.Settings Namespace