DialogPage.SaveSettingsToXml Method
Called by Visual Studio to store the settings of a dialog page to the Visual Studio settings storage on disk.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'Declaración
Public Overridable Sub SaveSettingsToXml ( _
writer As IVsSettingsWriter _
)
'Uso
Dim instance As DialogPage
Dim writer As IVsSettingsWriter
instance.SaveSettingsToXml(writer)
public virtual void SaveSettingsToXml(
IVsSettingsWriter writer
)
public:
virtual void SaveSettingsToXml(
IVsSettingsWriter^ writer
)
abstract SaveSettingsToXml :
writer:IVsSettingsWriter -> unit
override SaveSettingsToXml :
writer:IVsSettingsWriter -> unit
public function SaveSettingsToXml(
writer : IVsSettingsWriter
)
Parameters
- writer
Type: Microsoft.VisualStudio.Shell.Interop.IVsSettingsWriter
[in]A IVsSettingsWriter interface that is provided by the environment to the VSPackage to give write access to the Visual Studio settings file.
Implements
IProfileManager.SaveSettingsToXml(IVsSettingsWriter)
Remarks
SaveSettingsToXml implements LoadSettingsFromXml.
This method is called to save the settings of a dialog page 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.
Nota
Typically an instance of a dialog page class is its own automation object. Therefore, properties that are retrieved are those of the class that is derived from DialogPage. However, if AutomationObject returns another object, it is that object's properties, not the properties of the class, that are retrieved.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.Shell Namespace