Compartilhar via


IVsShell5.LoadPackageWithContext Method

Loads a package. If the package is not already loaded, this method provides additional diagnostic information about the reason for loading. Negative reason codes are reserved by the environment.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)

Syntax

'Declaration
Function LoadPackageWithContext ( _
    ByRef packageGuid As Guid, _
    reason As Integer, _
    ByRef context As Guid _
) As IVsPackage
IVsPackage LoadPackageWithContext(
    ref Guid packageGuid,
    int reason,
    ref Guid context
)
IVsPackage^ LoadPackageWithContext(
    [InAttribute] Guid% packageGuid, 
    [InAttribute] int reason, 
    [InAttribute] Guid% context
)
abstract LoadPackageWithContext : 
        packageGuid:Guid byref * 
        reason:int * 
        context:Guid byref -> IVsPackage
function LoadPackageWithContext(
    packageGuid : Guid, 
    reason : int, 
    context : Guid
) : IVsPackage

Parameters

  • packageGuid
    Type: Guid%

    [in] GUID of the package to load.

  • reason
    Type: Int32

    [in] The reason for loading the package.

  • context
    Type: Guid%

    [in] Optional context information associated with the reason.

Return Value

Type: Microsoft.VisualStudio.Shell.Interop.IVsPackage
The loaded package.

.NET Framework Security

See Also

Reference

IVsShell5 Interface

Microsoft.VisualStudio.Shell.Interop Namespace