Skip to main content
IVsShellIsPackageLoaded 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
int IsPackageLoaded(
	[InAttribute] 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 (
	<InAttribute> ByRef guidPackage As Guid,
	<OutAttribute> ByRef ppPackage As IVsPackage
) As Integer

Parameters

guidPackage
Type:

[in] GUID identifying a specific VSPackage.

ppPackage
Type:

[out] Pointer to a pointer to a package object.

Return Value

Type:

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

);

Return to top