IProfileManager.LoadSettingsFromXml(IVsSettingsReader) Method

Definition

Writes a VSPackage's configuration to disk using the Visual Studio settings mechanism when the export option of an Import/Export Settings feature available on the IDE’s Tools menu is selected by a user.

public:
 void LoadSettingsFromXml(Microsoft::VisualStudio::Shell::Interop::IVsSettingsReader ^ reader);
public:
 void LoadSettingsFromXml(Microsoft::VisualStudio::Shell::Interop::IVsSettingsReader ^ reader);
void LoadSettingsFromXml(Microsoft::VisualStudio::Shell::Interop::IVsSettingsReader const & reader);
public void LoadSettingsFromXml (Microsoft.VisualStudio.Shell.Interop.IVsSettingsReader reader);
abstract member LoadSettingsFromXml : Microsoft.VisualStudio.Shell.Interop.IVsSettingsReader -> unit
Public Sub LoadSettingsFromXml (reader As IVsSettingsReader)

Parameters

Remarks

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

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.

After calling this method, the IDE calls the SaveSettingsToStorage method to save the VSPackage's updated state to local storage (typically the registry) to guarantee that a VSPackage state is consistent when restarted.

Applies to