次の方法で共有


IProfileManager.SaveSettingsToStorage Method

Writes a VSPackage's configuration to local storage (typically the registry) following state update.

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

Syntax

'宣言
Sub SaveSettingsToStorage
'使用
Dim instance As IProfileManager

instance.SaveSettingsToStorage()
void SaveSettingsToStorage()
void SaveSettingsToStorage()
function SaveSettingsToStorage()

Remarks

An implementation of the SaveSettingsToStorage method needs to obtain access to the VSPackage it supports so it can obtain the state of the VSPackage.

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

For Visual Studio settings export operations, this method is called after LoadSettingsFromXml to update the VSPackage with the retrieved information and save it in local storage (typically the registry).

Permissions

See Also

Concepts

User Settings and Options

Persisting Settings

How to: Export Settings Using the Managed Package Framework

How to: Import Settings Using the Managed Package Framework

Reference

IProfileManager Interface

IProfileManager Members

Microsoft.VisualStudio.Shell Namespace

ProvideProfileAttribute

IProfileManager