DialogPage.SaveSettingsToXml Method

Called by Visual Studio to store a dialog page's settings to the Visual Studio settings storage on disk.

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

Syntax

'宣言
Public Overridable Sub SaveSettingsToXml ( _
    writer As IVsSettingsWriter _
)
'使用
Dim instance As DialogPage
Dim writer As IVsSettingsWriter

instance.SaveSettingsToXml(writer)
public virtual void SaveSettingsToXml(
    IVsSettingsWriter writer
)
public:
virtual void SaveSettingsToXml(
    IVsSettingsWriter^ writer
)
public function SaveSettingsToXml(
    writer : IVsSettingsWriter
)

Parameters

Implements

IProfileManager.SaveSettingsToXml(IVsSettingsWriter)

Remarks

SaveSettingsToXml implements LoadSettingsFromXml.

This method is called to save a dialog page's settings to the Visual Studio settings storage on disk.

The default implementation saves setting information for all the properties of the dialog page's automation object that support conversion to a string through TypeConverter.

注意

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, not the properties of the class, 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

LoadSettingsFromXml

DialogPage