IVsCfgProvider2.AdviseCfgProviderEvents(IVsCfgProviderEvents, UInt32) Method

Definition

Registers the caller for configuration event notification.

C++/WinRT
int AdviseCfgProviderEvents(Microsoft::VisualStudio::Shell::Interop::IVsCfgProviderEvents const & pCPE, [Runtime::InteropServices::Out] unsigned int & pdwCookie);

Parameters

pCPE
IVsCfgProviderEvents

[in] Pointer to the IVsCfgProviderEvents interface to be called to provide notification of configuration events.

pdwCookie
UInt32

[out] Pointer to a token representing the completed registration.

Returns

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

Remarks

COM Signature

From vsshell.idl:

cpp#
HRESULT IVsCfgProvider2::AdviseCfgProviderEvents(  
   [in] IVsCfgProviderEvents *pCPE,  
   [out] VSCOOKIE *pdwCookie  
);  

AdviseCfgProviderEvents is called by the environment. The environment implements the five methods of IVsCfgProviderEvents — one for each type of configuration event. For example, when a platform name is added, the project responsible for the change calls OnPlatformNameAdded.

Applies to

製品 バージョン
Visual Studio SDK 2015, 2017, 2019, 2022