DefaultRegistryRootAttribute.Root 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取 VSPackage 的默认注册表根的值。
public:
property System::String ^ Root { System::String ^ get(); };
public:
property Platform::String ^ Root { Platform::String ^ get(); };
public string Root { get; }
member this.Root : string
Public ReadOnly Property Root As String
属性值
VSPackage 的默认注册表根的值。
注解
中存储的注册表根 DefaultRegistryRootAttribute 是相对于的 HKEY_LOCAL_MACHINE 。 例如, Software \ \Microsoft \ \VisualStudio \ \8.0Exp 的值对应于注册表项 HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\8.0Exp。
自动注册工具(如 regpkg.exe)会将 VSPackage 注册到存储在中的注册表根 DefaultRegistryRootAttribute ,除非注册工具提供备用注册表根(例如)作为命令行参数。