VSRegistry::RegistryRoot Method (IServiceProvider^, __VsLocalRegistryType, Boolean)
Visual Studio 2015
Represents the root of the registry hive under which Visual Studio is currently running, in the specified part of the registry.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
public: static RegistryKey^ RegistryRoot( IServiceProvider^ provider, __VsLocalRegistryType registryType, bool writable )
Parameters
- provider
-
Type:
System::IServiceProvider^
The current IServiceProvider.
- registryType
-
Type:
Microsoft.VisualStudio.Shell.Interop::__VsLocalRegistryType
A __VsLocalRegistryType enumeration specifying the part of the registry.
- writable
-
Type:
System::Boolean
Whether or not the root is writable.
For the registryType parameter you should use only RegType_Configuration for the application root, or f:Microsoft.VisualStudio.Shell.Interop.__VsLocalRegistryType.RegType_UserSettings for the user settings root.
Show: