次の方法で共有


ILocalRegistry2.GetLocalRegistryRoot Method

Returns the local registry root.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'宣言
Function GetLocalRegistryRoot ( _
    <OutAttribute> ByRef pbstrRoot As String _
) As Integer
'使用
Dim instance As ILocalRegistry2
Dim pbstrRoot As String
Dim returnValue As Integer

returnValue = instance.GetLocalRegistryRoot(pbstrRoot)
int GetLocalRegistryRoot(
    out string pbstrRoot
)
int GetLocalRegistryRoot(
    [OutAttribute] String^% pbstrRoot
)
abstract GetLocalRegistryRoot : 
        pbstrRoot:string byref -> int 
function GetLocalRegistryRoot(
    pbstrRoot : String
) : int

Parameters

  • pbstrRoot
    Type: System.String%
    [out] Pointer to a string containing the local registry root.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From objext.idl:

HRESULT ILocalRegistry2::GetLocalRegistryRoot(

   [out] BSTR* pbstrRoot

);

.NET Framework Security

See Also

Reference

ILocalRegistry2 Interface

ILocalRegistry2 Members

Microsoft.VisualStudio.Shell.Interop Namespace