Freigeben über


IVsCfgProvider2.AdviseCfgProviderEvents(IVsCfgProviderEvents, UInt32) Method

Definition

Registers the caller for configuration event notification.

public:
 int AdviseCfgProviderEvents(Microsoft::VisualStudio::Shell::Interop::IVsCfgProviderEvents ^ pCPE, [Runtime::InteropServices::Out] System::UInt32 % pdwCookie);
int AdviseCfgProviderEvents(Microsoft::VisualStudio::Shell::Interop::IVsCfgProviderEvents const & pCPE, [Runtime::InteropServices::Out] unsigned int & pdwCookie);
public int AdviseCfgProviderEvents (Microsoft.VisualStudio.Shell.Interop.IVsCfgProviderEvents pCPE, out uint pdwCookie);
abstract member AdviseCfgProviderEvents : Microsoft.VisualStudio.Shell.Interop.IVsCfgProviderEvents * uint32 -> int
Public Function AdviseCfgProviderEvents (pCPE As IVsCfgProviderEvents, ByRef pdwCookie As UInteger) As Integer

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:

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