Partager via


VSRegistry.RegistryRoot Method

Definition

Overloads

RegistryRoot(__VsLocalRegistryType)

Returns a read-only RegistryKey object for the root of a given storage type. It is up to the caller to dispose the returned object.

RegistryRoot(__VsLocalRegistryType, Boolean)

Returns a RegistryKey object for the root of a given storage type. It is up to the caller to dispose the returned object.

RegistryRoot(IServiceProvider, __VsLocalRegistryType, Boolean)

Returns a RegistryKey object for the root of a given storage type. It is up to the caller to dispose the returned object.

RegistryRoot(__VsLocalRegistryType)

Returns a read-only RegistryKey object for the root of a given storage type. It is up to the caller to dispose the returned object.

public:
 static Microsoft::Win32::RegistryKey ^ RegistryRoot(Microsoft::VisualStudio::Shell::Interop::__VsLocalRegistryType registryType);
public:
 static Microsoft::Win32::RegistryKey ^ RegistryRoot(Microsoft::VisualStudio::Shell::Interop::__VsLocalRegistryType registryType);
 static Microsoft::Win32::RegistryKey RegistryRoot(Microsoft::VisualStudio::Shell::Interop::__VsLocalRegistryType registryType);
public static Microsoft.Win32.RegistryKey RegistryRoot (Microsoft.VisualStudio.Shell.Interop.__VsLocalRegistryType registryType);
static member RegistryRoot : Microsoft.VisualStudio.Shell.Interop.__VsLocalRegistryType -> Microsoft.Win32.RegistryKey
Public Shared Function RegistryRoot (registryType As __VsLocalRegistryType) As RegistryKey

Parameters

registryType
__VsLocalRegistryType

The type of registry storage to open.

Returns

Returns RegistryKey.

Exceptions

Remarks

This method is safe to call from any thread.

Applies to

RegistryRoot(__VsLocalRegistryType, Boolean)

Returns a RegistryKey object for the root of a given storage type. It is up to the caller to dispose the returned object.

public:
 static Microsoft::Win32::RegistryKey ^ RegistryRoot(Microsoft::VisualStudio::Shell::Interop::__VsLocalRegistryType registryType, bool writable);
public:
 static Microsoft::Win32::RegistryKey ^ RegistryRoot(Microsoft::VisualStudio::Shell::Interop::__VsLocalRegistryType registryType, bool writable);
 static Microsoft::Win32::RegistryKey RegistryRoot(Microsoft::VisualStudio::Shell::Interop::__VsLocalRegistryType registryType, bool writable);
public static Microsoft.Win32.RegistryKey RegistryRoot (Microsoft.VisualStudio.Shell.Interop.__VsLocalRegistryType registryType, bool writable);
static member RegistryRoot : Microsoft.VisualStudio.Shell.Interop.__VsLocalRegistryType * bool -> Microsoft.Win32.RegistryKey
Public Shared Function RegistryRoot (registryType As __VsLocalRegistryType, writable As Boolean) As RegistryKey

Parameters

registryType
__VsLocalRegistryType

The type of registry storage to open.

writable
Boolean

Flag to indicate is the key should be writable.

Returns

Returns RegistryKey.

Exceptions

Remarks

This method is safe to access from any thread.

Applies to

RegistryRoot(IServiceProvider, __VsLocalRegistryType, Boolean)

Returns a RegistryKey object for the root of a given storage type. It is up to the caller to dispose the returned object.

public:
 static Microsoft::Win32::RegistryKey ^ RegistryRoot(IServiceProvider ^ provider, Microsoft::VisualStudio::Shell::Interop::__VsLocalRegistryType registryType, bool writable);
public static Microsoft.Win32.RegistryKey RegistryRoot (IServiceProvider provider, Microsoft.VisualStudio.Shell.Interop.__VsLocalRegistryType registryType, bool writable);
static member RegistryRoot : IServiceProvider * Microsoft.VisualStudio.Shell.Interop.__VsLocalRegistryType * bool -> Microsoft.Win32.RegistryKey
Public Shared Function RegistryRoot (provider As IServiceProvider, registryType As __VsLocalRegistryType, writable As Boolean) As RegistryKey

Parameters

provider
IServiceProvider

The service provider to use to access the Visual Studio's services.

registryType
__VsLocalRegistryType

The type of registry storage to open.

writable
Boolean

Flag to indicate is the key should be writable.

Returns

Returns RegistryKey.

Exceptions

provider is null.

Remarks

This method is safe to access from any thread.

Applies to