Notes
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
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 ( _
provider As IServiceProvider, _
registryType As __VsLocalRegistryType, _
writable As Boolean _
) As RegistryKey
'Utilisation
Dim provider As IServiceProvider
Dim registryType As __VsLocalRegistryType
Dim writable As Boolean
Dim returnValue As RegistryKey
returnValue = VSRegistry.RegistryRoot(provider, _
registryType, writable)
public static RegistryKey RegistryRoot(
IServiceProvider provider,
__VsLocalRegistryType registryType,
bool writable
)
public:
static RegistryKey^ RegistryRoot(
IServiceProvider^ provider,
__VsLocalRegistryType registryType,
bool writable
)
static member RegistryRoot :
provider:IServiceProvider *
registryType:__VsLocalRegistryType *
writable:bool -> RegistryKey
public static function RegistryRoot(
provider : IServiceProvider,
registryType : __VsLocalRegistryType,
writable : boolean
) : RegistryKey
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.
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
- 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.