Compartilhar via


IVsShell6.LoadPackageWithContext(Guid, Int32, Guid) Method

Definition

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.

public:
 Microsoft::VisualStudio::Shell::Interop::IVsPackage ^ LoadPackageWithContext(Guid % packageGuid, int reason, Guid % context);
public Microsoft.VisualStudio.Shell.Interop.IVsPackage LoadPackageWithContext (ref Guid packageGuid, int reason, ref Guid context);
abstract member LoadPackageWithContext : Guid * int * Guid -> Microsoft.VisualStudio.Shell.Interop.IVsPackage
Public Function LoadPackageWithContext (ByRef packageGuid As Guid, reason As Integer, ByRef context As Guid) As IVsPackage

Parameters

packageGuid
Guid

[in] GUID of the package to load.

reason
Int32

[in] The reason for loading the package.

context
Guid

[in] Optional context information associated with the reason.

Returns

The loaded package.

Implements

Applies to