IVsLibrary.GetGuid Method

Returns a pointer to the GUID of the library.

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

Syntax

'宣言
Function GetGuid ( _
    <OutAttribute> ByRef ppguidLib As Guid _
) As Integer
'使用
Dim instance As IVsLibrary
Dim ppguidLib As Guid
Dim returnValue As Integer

returnValue = instance.GetGuid(ppguidLib)
int GetGuid(
    out Guid ppguidLib
)
int GetGuid(
    [OutAttribute] Guid% ppguidLib
)
function GetGuid(
    ppguidLib : Guid
) : int

Parameters

  • ppguidLib
    Type: System.Guid%

    [out] Pointer to the GUID of the current library.

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 vsshell.idl:

HRESULT IVsLibrary::GetGuid(
   const GUID **ppguidLib
);

This method returns the GUID identifying the current library. Put the library GUID into the code that implements this method.

Permissions

See Also

Reference

IVsLibrary Interface

IVsLibrary Members

Microsoft.VisualStudio.Shell.Interop Namespace