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

返回 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

返回 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

返回 RegistryKey

注解

对于 registryType 参数,你应仅 RegType_Configuration 对应用程序根目录或 RegType_UserSettings 用户设置根使用。

适用于