次の方法で共有


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
Assemblies:   Microsoft.VisualStudio.Settings.11.0 (in Microsoft.VisualStudio.Settings.11.0.dll)
  Microsoft.VisualStudio.Settings (in Microsoft.VisualStudio.Settings.dll)

Syntax

'宣言
Public NotInheritable Class ExternalSettingsManager _
    Inherits SettingsManager _
    Implements IDisposable
public sealed class ExternalSettingsManager : SettingsManager, 
    IDisposable

The ExternalSettingsManager type exposes the following members.

Methods

  Name Description
Public methodStatic member CreateForApplication(String) Used to construct the SettingsManager for AppID-based Visual Studio applications.
Public methodStatic member CreateForApplication(String, Boolean) Used to construct the SettingsManager for AppID-based Visual Studio applications.
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member CreateForIsolatedApplication(String, String) Used to construct the SettingsManager for AppEnv-based Visual Studio custom applications. Custom applications are isolated among themselves.
Public methodStatic member CreateForIsolatedApplication(String, String, String)
Public methodStatic member CreateForIsolatedApplication(String, String, Boolean) Used to construct the SettingsManager for AppEnv-based Visual Studio custom applications. Custom applications are isolated among themselves.
Public methodStatic member CreateForIsolatedApplication(String, String, String, Boolean)
Public method Dispose Releases the resources that are used by the current instance of the ExternalSettingsManager class.
Public method Equals Determines whether the specified object is equal to the current object. (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 (Overrides SettingsManager.GetApplicationDataFolder(ApplicationDataFolder).)
Public method GetCollectionScopes Outputs the scopes that contain the given collection. (Overrides SettingsManager.GetCollectionScopes(String).)
Public method GetCommonExtensionsSearchPaths Returns the list of folders that Visual Studio uses to install or look for machine-wide extensions. (Overrides SettingsManager.GetCommonExtensionsSearchPaths().)
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. (Overrides SettingsManager.GetPropertyScopes(String, String).)
Public method GetReadOnlySettingsStore Provides the SettingsStore class for the requested scope which 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 Provides the WritableSettingsStore class for the requested scope which can be used for reading operations and writing operations. (Overrides SettingsManager.GetWritableSettingsStore(SettingsScope).)
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.

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.

See Also

Reference

Microsoft.VisualStudio.Settings Namespace