IVsShell::IsPackageLoaded Method (Guid, IVsPackage^)
Visual Studio 2015
Determines whether a VSPackage identified by the package GUID (guidPackage) is loaded in the environment.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int IsPackageLoaded(
[InAttribute] Guid% guidPackage,
[OutAttribute] IVsPackage^% ppPackage
)
Parameters
- guidPackage
-
Type:
System::Guid
[in] GUID identifying a specific VSPackage.
- ppPackage
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsPackage^
[out] Pointer to a pointer to a package object.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsShell::IsPackageLoaded(
[in] REFGUID guidPackage,
[out, retval] IVsPackage **ppPackage
);
Show: