IVsShell.IsPackageLoaded(Guid, IVsPackage) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
);