IVsUpdateSolutionEvents.OnActiveProjectCfgChange(IVsHierarchy) Method

Definition

Called when the active project configuration for a project in the solution has changed.

public:
 int OnActiveProjectCfgChange(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pIVsHierarchy);
public:
 int OnActiveProjectCfgChange(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pIVsHierarchy);
int OnActiveProjectCfgChange(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pIVsHierarchy);
public int OnActiveProjectCfgChange (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pIVsHierarchy);
abstract member OnActiveProjectCfgChange : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy -> int
Public Function OnActiveProjectCfgChange (pIVsHierarchy As IVsHierarchy) As Integer

Parameters

pIVsHierarchy
IVsHierarchy

[in] Pointer to an IVsHierarchy object.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsUpdateSolutionEvents::OnActiveProjectCfgChange(  
   [in] IVsHierarchy *pIVsHierarchy  
);  

The OnActiveProjectCfgChange event is fired after the active project configuration for a project in the solution has been changed. If null is passed for pIVsHierarchy, sinks for this event have to assume that every project in the solution may have changed, even if there is only one project active in the solution.

Applies to