Compartilhar via


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

'Declaration
Function GetGuid ( _
    <OutAttribute> ByRef ppguidLib As Guid _
) As Integer
int GetGuid(
    out Guid ppguidLib
)
int GetGuid(
    [OutAttribute] Guid% ppguidLib
)
abstract GetGuid : 
        ppguidLib:Guid byref -> int
function GetGuid(
    ppguidLib : Guid
) : int

Parameters

  • ppguidLib
    Type: Guid%

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

Return Value

Type: 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.

.NET Framework Security

See Also

Reference

IVsLibrary Interface

Microsoft.VisualStudio.Shell.Interop Namespace