Export (0) Print
Expand All

IVsCfgProviderEventsHelper.AdviseCfgProviderEvents Method

Called to add listeners for configuration events to the array.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int AdviseCfgProviderEvents (
	[InAttribute] IVsCfgProviderEvents pCPE,
	out uint pdwCookie
)
int AdviseCfgProviderEvents (
	/** @attribute InAttribute() */ IVsCfgProviderEvents pCPE, 
	/** @attribute OutAttribute() */ /** @ref */ UInt32 pdwCookie
)
JScript does not support passing value-type arguments by reference.

Parameters

pCPE

[in] Pointer to IVsCfgProviderEvents object.

pdwCookie

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

Return Value

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

COM Signature

From vsshell.idl:

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

This method is called through IVsCfgProvider2 to add listeners to the array of clients to be notified of configuration events. If the object (IVsCfgProviderEventsHelper) has not yet been instantiated, it should be created with the first call to this method. Subsequent calls will add clients to the array of listeners.

Community Additions

ADD
Show:
© 2015 Microsoft