Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents the root of the registry hive under which Visual Studio is currently running, in the specified part of the registry.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Shared Function RegistryRoot ( _
registryType As __VsLocalRegistryType, _
writable As Boolean _
) As RegistryKey
public static RegistryKey RegistryRoot(
__VsLocalRegistryType registryType,
bool writable
)
public:
static RegistryKey^ RegistryRoot(
__VsLocalRegistryType registryType,
bool writable
)
static member RegistryRoot :
registryType:__VsLocalRegistryType *
writable:bool -> RegistryKey
public static function RegistryRoot(
registryType : __VsLocalRegistryType,
writable : boolean
) : RegistryKey
Parameters
registryType
Type: Microsoft.VisualStudio.Shell.Interop.__VsLocalRegistryTypeA __VsLocalRegistryType enumeration specifying the part of the registry.
writable
Type: BooleanWhether or not the root is writable
Return Value
Type: RegistryKey
Remarks
For the registryType parameter you should use only RegType_Configuration for the application root, or RegType_UserSettings for the user settings root.
.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.