IVsShell6::LoadPackageWithContext Method (Guid, Int32, Guid)

 

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.12.0 (in Microsoft.VisualStudio.Shell.Interop.12.0.dll)

IVsPackage^ LoadPackageWithContext(
	[InAttribute] Guid% packageGuid,
	int reason,
	[InAttribute] Guid% context
)

Parameters

packageGuid
Type: System::Guid

[in] GUID of the package to load.

reason
Type: System::Int32

[in] The reason for loading the package.

context
Type: System::Guid

[in] Optional context information associated with the reason.

Return Value

Type: Microsoft.VisualStudio.Shell.Interop::IVsPackage^

The loaded package.

Return to top
Show: