Share via


IProfileManager.SaveSettingsToXml(IVsSettingsWriter) Method

Definition

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

public:
 void SaveSettingsToXml(Microsoft::VisualStudio::Shell::Interop::IVsSettingsWriter ^ writer);
public:
 void SaveSettingsToXml(Microsoft::VisualStudio::Shell::Interop::IVsSettingsWriter ^ writer);
void SaveSettingsToXml(Microsoft::VisualStudio::Shell::Interop::IVsSettingsWriter const & writer);
public void SaveSettingsToXml (Microsoft.VisualStudio.Shell.Interop.IVsSettingsWriter writer);
abstract member SaveSettingsToXml : Microsoft.VisualStudio.Shell.Interop.IVsSettingsWriter -> unit
Public Sub SaveSettingsToXml (writer As IVsSettingsWriter)

Parameters

Remarks

An implementation of the SaveSettingsToXml method needs to obtain access to the VSPackage it supports so it can retrieve the current state of the VSPackage and write it to disk.

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

Prior to calling this method, the IDE calls LoadSettingsFromStorage to guarantee that the VSPackage state is correct.

Applies to