SharedProjectUtilities.SetActiveProjectContext Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.