Condividi tramite


IProfileManager.LoadSettingsFromStorage Method

Reads a VSPackage's configuration from local storage (typically the registry) and updates its state.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'Dichiarazione
Sub LoadSettingsFromStorage
'Utilizzo
Dim instance As IProfileManager

instance.LoadSettingsFromStorage()
void LoadSettingsFromStorage()
void LoadSettingsFromStorage()
abstract LoadSettingsFromStorage : unit -> unit 
function LoadSettingsFromStorage()

Remarks

An implementation of LoadSettingsFromStorage needs to obtain access to the VSPackage it supports so that it can validate the retrieved data and update the state of the VSPackage..

This method is called by the Visual Studio environment when a VSPackage is initialized, or when a user chooses the Import/Export Settings command on the Tools menu to save the Visual Studio state.

For Visual Studio settings export operations, this method is called prior to SaveSettingsToXml to load VSPackage from local storage (typically the registry) to ensure that the correct VSPackage state is called.

.NET Framework Security

See Also

Reference

IProfileManager Interface

IProfileManager Members

Microsoft.VisualStudio.Shell Namespace

ProvideProfileAttribute

IProfileManager

Other Resources

User Settings and Options

Persisting Settings

How to: Export Settings By Using the Managed Package Framework

How to: Import Settings By Using the Managed Package Framework