Partager via


VSRegistry.RegistryRoot Method (__VsLocalRegistryType)

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
Assemblies:   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

'Déclaration
Public Shared Function RegistryRoot ( _
    registryType As __VsLocalRegistryType _
) As RegistryKey
'Utilisation
Dim registryType As __VsLocalRegistryType
Dim returnValue As RegistryKey

returnValue = VSRegistry.RegistryRoot(registryType)
public static RegistryKey RegistryRoot(
    __VsLocalRegistryType registryType
)
public:
static RegistryKey^ RegistryRoot(
    __VsLocalRegistryType registryType
)
static member RegistryRoot : 
        registryType:__VsLocalRegistryType -> RegistryKey 
public static function RegistryRoot(
    registryType : __VsLocalRegistryType
) : RegistryKey

Parameters

Return Value

Type: Microsoft.Win32.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

See Also

Reference

VSRegistry Class

VSRegistry Members

RegistryRoot Overload

Microsoft.VisualStudio.Shell Namespace