Freigeben über


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
'Usage
Dim instance As IVsSimpleLibrary2
Dim pguidLib As Guid
Dim returnValue As Integer

returnValue = instance.GetGuid(pguidLib)
int GetGuid(
    out Guid pguidLib
)
int GetGuid(
    [OutAttribute] Guid% pguidLib
)
abstract GetGuid : 
        pguidLib:Guid byref -> int 
function GetGuid(
    pguidLib : Guid
) : int

Parameters

  • pguidLib
    Type: System.Guid%
    [out] Returns the GUID that identifies this 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 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

IVsSimpleLibrary2 Members

Microsoft.VisualStudio.Shell.Interop Namespace