Bagikan melalui


ShellSettingsManager Class

Represents the settings stored inside Visual Studio.

This API is not CLS-compliant. 

Inheritance Hierarchy

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

Namespace:  Microsoft.VisualStudio.Shell.Settings
Assembly:  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public NotInheritable Class ShellSettingsManager _
    Inherits SettingsManager
[CLSCompliantAttribute(false)]
public sealed class ShellSettingsManager : SettingsManager
[CLSCompliantAttribute(false)]
public ref class ShellSettingsManager sealed : public SettingsManager
[<Sealed>]
[<CLSCompliantAttribute(false)>]
type ShellSettingsManager =  
    class
        inherit SettingsManager
    end
public final class ShellSettingsManager extends SettingsManager

The ShellSettingsManager type exposes the following members.

Constructors

  Name Description
Public method ShellSettingsManager

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 Gets the folder that Visual Studio uses for storing various cache, backup, template, etc. files (Overrides SettingsManager.GetApplicationDataFolder(ApplicationDataFolder).)
Public method GetCollectionScopes Gets the scopes that contain the given collection. (Overrides SettingsManager.GetCollectionScopes(String).)
Public method GetCommonExtensionsSearchPaths Gets the list of folders that Visual Studio uses for installing/discovering machine-wide extensions. (Overrides SettingsManager.GetCommonExtensionsSearchPaths().)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetPropertyScopes Gets the scopes that contain the given property. (Overrides SettingsManager.GetPropertyScopes(String, String).)
Public method GetReadOnlySettingsStore Gets the SettingsStore class for the requested scope that can be used for read-only operations. (Overrides SettingsManager.GetReadOnlySettingsStore(SettingsScope).)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetWritableSettingsStore Gets the WritableSettingsStore object for the requested scope which can be used both for reading and writing. (Overrides SettingsManager.GetWritableSettingsStore(SettingsScope).)
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

This class allows you to search for properties and collections in different scopes. It contains references to the SettingsScope and WritableSettingsStore classes for further manipulation of the collections and properties in the scope. This class implements the IDisposable pattern and must be disposed after it is no longer necessary.

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.Shell.Settings Namespace