Freigeben über


SharedProjectUtilities.SetActiveProjectContext Method

Definition

Sets the active project context.

public:
[System::Runtime::CompilerServices::Extension]
 static int SetActiveProjectContext(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ hierarchy, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ activeProjectContext);
public:
[System::Runtime::CompilerServices::Extension]
 static int SetActiveProjectContext(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ hierarchy, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ activeProjectContext);
public static int SetActiveProjectContext (this Microsoft.VisualStudio.Shell.Interop.IVsHierarchy hierarchy, Microsoft.VisualStudio.Shell.Interop.IVsHierarchy activeProjectContext);
static member SetActiveProjectContext : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * Microsoft.VisualStudio.Shell.Interop.IVsHierarchy -> int
<Extension()>
Public Function SetActiveProjectContext (hierarchy As IVsHierarchy, activeProjectContext As IVsHierarchy) As Integer

Parameters

hierarchy
IVsHierarchy

The Shared Project hierarchy.

activeProjectContext
IVsHierarchy

The active project hierarchy, could be null to clear the active project context.

Returns

The HRESULT.

Applies to