次の方法で共有


DialogPage.LoadSettingsFromStorage Method

Called by Visual Studio to load a dialog page's settings from local storage, generally the registry.

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

Syntax

'宣言
Public Overridable Sub LoadSettingsFromStorage
'使用
Dim instance As DialogPage

instance.LoadSettingsFromStorage()
public virtual void LoadSettingsFromStorage()
public:
virtual void LoadSettingsFromStorage()
public function LoadSettingsFromStorage()

Implements

IProfileManager.LoadSettingsFromStorage()

Remarks

LoadSettingsFromStorage implements IProfileManager.LoadSettingsFromStorage.

This method is called to load a dialog page's settings from local (as opposed to disk) storage, typically from the registry.

The default implementation:

  1. Retrieves setting information for all the properties of the dialog page's automation object that support conversion to a string through TypeConverter.

  2. Obtains settings from registry under the registry <VSROOT>\<SettingsRegistryPath>, where

    • <VSROOT> is the top Visual Studio version specific top level registry entry, typically

      HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\<Version>.

      <Version> is the Visual Studio version.

      An alternate root can be specified when the Visual Studio shell is initialized. For more information to specify alternate root in the registry, see, Command-Line Switches (Visual Studio SDK).

    • <SettingsRegistryPath> is the value returned by SettingsRegistryPath.

注意

Typically an instance of a dialog page class is its own automation object. Therefore, properties retrieved are those of the class derived from DialogPage. However, if AutomationObject returns another object, it is that object's properties, and not the properties of the class's, that are retrieved.

Permissions

See Also

Concepts

Tools Options Pages

Toolbox (Visual Studio SDK)

State Persistence and the Visual Studio IDE

Reference

DialogPage Class

DialogPage Members

Microsoft.VisualStudio.Shell Namespace

LoadSettingsFromStorage

DialogPage