다음을 통해 공유


IVsUpdateSolutionEvents3.OnBeforeActiveSolutionCfgChange Method

Definition

Fired before the active solution configuration is changed.

public:
 int OnBeforeActiveSolutionCfgChange(Microsoft::VisualStudio::Shell::Interop::IVsCfg ^ pOldActiveSlnCfg, Microsoft::VisualStudio::Shell::Interop::IVsCfg ^ pNewActiveSlnCfg);
public:
 int OnBeforeActiveSolutionCfgChange(Microsoft::VisualStudio::Shell::Interop::IVsCfg ^ pOldActiveSlnCfg, Microsoft::VisualStudio::Shell::Interop::IVsCfg ^ pNewActiveSlnCfg);
int OnBeforeActiveSolutionCfgChange(Microsoft::VisualStudio::Shell::Interop::IVsCfg const & pOldActiveSlnCfg, Microsoft::VisualStudio::Shell::Interop::IVsCfg const & pNewActiveSlnCfg);
public int OnBeforeActiveSolutionCfgChange (Microsoft.VisualStudio.Shell.Interop.IVsCfg pOldActiveSlnCfg, Microsoft.VisualStudio.Shell.Interop.IVsCfg pNewActiveSlnCfg);
abstract member OnBeforeActiveSolutionCfgChange : Microsoft.VisualStudio.Shell.Interop.IVsCfg * Microsoft.VisualStudio.Shell.Interop.IVsCfg -> int
Public Function OnBeforeActiveSolutionCfgChange (pOldActiveSlnCfg As IVsCfg, pNewActiveSlnCfg As IVsCfg) As Integer

Parameters

pOldActiveSlnCfg
IVsCfg

[in] The active solution configuration that is to be changed. This parameter can be null.

pNewActiveSlnCfg
IVsCfg

[in] The new active solution configuration.

Returns

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

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsUpdateSolutionEvents3::OnBeforeActiveSolutionCfgChange(  
   [in] IVsCfg *pOldActiveSlnCfg,   
   [in] IVsCfg *pNewActiveSlnCfg  
);  

Applies to