IProfileManager.LoadSettingsFromXml Method
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.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'Declaration
Sub LoadSettingsFromXml ( _
reader As IVsSettingsReader _
)
void LoadSettingsFromXml(
IVsSettingsReader reader
)
void LoadSettingsFromXml(
IVsSettingsReader^ reader
)
abstract LoadSettingsFromXml :
reader:IVsSettingsReader -> unit
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.
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.
.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
Other Resources
How to: Export Settings By Using the Managed Package Framework
How to: Import Settings By Using the Managed Package Framework