VSRegistry.RegistryRoot Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
| RegistryRoot(__VsLocalRegistryType) |
Представляет корень куста реестра, под которым Visual Studio в настоящий момент выполняется, в указанной части реестра. |
| RegistryRoot(__VsLocalRegistryType, Boolean) |
Представляет корень куста реестра, под которым Visual Studio в настоящий момент выполняется, в указанной части реестра. |
| RegistryRoot(IServiceProvider, __VsLocalRegistryType, Boolean) |
Представляет корень куста реестра, под которым Visual Studio в настоящий момент выполняется, в указанной части реестра. |
RegistryRoot(__VsLocalRegistryType)
Представляет корень куста реестра, под которым Visual Studio в настоящий момент выполняется, в указанной части реестра.
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
Параметры
- registryType
- __VsLocalRegistryType
Перечисление __VsLocalRegistryType, указывающее часть реестра.
Возвращаемое значение
Возвращает RegistryKey.
Комментарии
Для registryType параметра следует использовать только RegType_Configuration для корневого каталога приложения или RegType_UserSettings для корневого пользователя параметров.
Применяется к
RegistryRoot(__VsLocalRegistryType, Boolean)
Представляет корень куста реестра, под которым Visual Studio в настоящий момент выполняется, в указанной части реестра.
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
Параметры
- registryType
- __VsLocalRegistryType
Перечисление __VsLocalRegistryType, указывающее часть реестра.
- writable
- Boolean
Указывает, доступен ли корень для записи
Возвращаемое значение
Возвращает RegistryKey.
Комментарии
Для registryType параметра следует использовать только RegType_Configuration для корневого каталога приложения или RegType_UserSettings для корневого пользователя параметров.
Применяется к
RegistryRoot(IServiceProvider, __VsLocalRegistryType, Boolean)
Представляет корень куста реестра, под которым Visual Studio в настоящий момент выполняется, в указанной части реестра.
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
Параметры
- provider
- IServiceProvider
Текущий контекст IServiceProvider.
- registryType
- __VsLocalRegistryType
Перечисление __VsLocalRegistryType, указывающее часть реестра.
- writable
- Boolean
Указывает, доступен ли корень для записи.
Возвращаемое значение
Возвращает RegistryKey.
Комментарии
Для registryType параметра следует использовать только RegType_Configuration для корневого каталога приложения или RegType_UserSettings для корневого пользователя параметров.