Called by Visual Studio to load a dialog page's settings from the Visual Studio settings storage on disk.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
'宣言
Public Overridable Sub LoadSettingsFromXml ( _
reader As IVsSettingsReader _
)
'使用
Dim instance As DialogPage
Dim reader As IVsSettingsReader
instance.LoadSettingsFromXml(reader)
public virtual void LoadSettingsFromXml(
IVsSettingsReader reader
)
public:
virtual void LoadSettingsFromXml(
IVsSettingsReader^ reader
)
public function LoadSettingsFromXml(
reader : IVsSettingsReader
)
Parameters
reader
Type: Microsoft.VisualStudio.Shell.Interop.IVsSettingsReader[in]An IVsSettingsReader interface provided by the environment to the VSPackage providing read access to the Visual Studio settings file.
Implements
IProfileManager.LoadSettingsFromXml(IVsSettingsReader)
Remarks
LoadSettingsFromXml implements LoadSettingsFromXml.
This method is called to load a dialog page's settings from the Visual Studio settings storage on disk.
The default implementation retrieves 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, and not the properties of the class, that are retrieved.
Permissions
- 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
Concepts
State Persistence and the Visual Studio IDE