ILocalRegistry3.GetLocalRegistryRoot 方法 (String%)

返回本地注册表根。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)

语法

声明
Function GetLocalRegistryRoot ( _
    <OutAttribute> ByRef pbstrRoot As String _
) As Integer
int GetLocalRegistryRoot(
    out string pbstrRoot
)

参数

  • pbstrRoot
    类型:System.String%
    [out] 对包含本地注册表根的字符串的指针。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

新包应使用 GetLocalRegistryRootEx,也返回注册表项对每个用户或基于计算机设置。

COM 签名

从 objext.idl:

HRESULT ILocalRegistry3::GetLocalRegistryRoot(
    [out] BSTR* pbstrRoot
);

.NET Framework 安全性

请参见

参考

ILocalRegistry3 接口

GetLocalRegistryRoot 重载

Microsoft.VisualStudio.Shell.Interop 命名空间