Bagikan melalui


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
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

Microsoft.VisualStudio.Shell.Interop Namespace