Freigeben über


IVsShell.IsPackageLoaded Method

Determines whether a VSPackage identified by the package GUID (guidPackage) is loaded in the environment.

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

Syntax

'Declaration
Function IsPackageLoaded ( _
    ByRef guidPackage As Guid, _
    <OutAttribute> ByRef ppPackage As IVsPackage _
) As Integer
'Usage
Dim instance As IVsShell
Dim guidPackage As Guid
Dim ppPackage As IVsPackage
Dim returnValue As Integer

returnValue = instance.IsPackageLoaded(guidPackage, _
    ppPackage)
int IsPackageLoaded(
    ref Guid guidPackage,
    out IVsPackage ppPackage
)
int IsPackageLoaded(
    [InAttribute] Guid% guidPackage, 
    [OutAttribute] IVsPackage^% ppPackage
)
abstract IsPackageLoaded : 
        guidPackage:Guid byref * 
        ppPackage:IVsPackage byref -> int 
function IsPackageLoaded(
    guidPackage : Guid, 
    ppPackage : IVsPackage
) : int

Parameters

  • guidPackage
    Type: System.Guid%
    [in] GUID identifying a specific VSPackage.

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 IVsShell::IsPackageLoaded(

   [in] REFGUID guidPackage,

   [out, retval] IVsPackage **ppPackage

);

.NET Framework Security

See Also

Reference

IVsShell Interface

IVsShell Members

Microsoft.VisualStudio.Shell.Interop Namespace