Partager via


IVsShell.IsPackageLoaded(Guid, IVsPackage) Method

Definition

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

public:
 int IsPackageLoaded(Guid % guidPackage, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsPackage ^ % ppPackage);
public int IsPackageLoaded (ref Guid guidPackage, out Microsoft.VisualStudio.Shell.Interop.IVsPackage ppPackage);
abstract member IsPackageLoaded : Guid * IVsPackage -> int
Public Function IsPackageLoaded (ByRef guidPackage As Guid, ByRef ppPackage As IVsPackage) As Integer

Parameters

guidPackage
Guid

[in] GUID identifying a specific VSPackage.

ppPackage
IVsPackage

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

Returns

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

);

Applies to