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
‘선언
Function IsPackageLoaded ( _
ByRef guidPackage As Guid, _
<OutAttribute> ByRef ppPackage As IVsPackage _
) As Integer
‘사용 방법
Dim instance As IVsShell
Dim guidPackage As Guid
Dim ppPackage As IVsPackage
Dim returnValue As Integer
returnValue = instance.IsPackageLoaded(guidPackage, _
ppPackage)
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.
- ppPackage
Type: Microsoft.VisualStudio.Shell.Interop.IVsPackage%
[out] Pointer to a pointer to a package object.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.