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
)
abstract GetGuid : 
        ppguidLib:Guid byref -> int 
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.