Compartilhar via


IVsSimpleLibrary2.GetGuid Method

Returns the GUID of the library.

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

Syntax

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

Parameters

  • pguidLib
    Type: Guid%

    [out] Returns the GUID that identifies this 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 vsshell80.idl:

HRESULT IVsSimpleLibrary2::GetGuid(
   GUID *ppguidLib
);

This method returns the GUID identifying the current library. This GUID should be unique to the library.

.NET Framework Security

See Also

Reference

IVsSimpleLibrary2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace