IVsUIDynamicCollection.AdviseCollectionChangeEvents(IVsUICollectionChangeEvents, UInt32) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Inscrit un récepteur d'événements pour les notifications de modifications de collection.
public:
int AdviseCollectionChangeEvents(Microsoft::VisualStudio::Shell::Interop::IVsUICollectionChangeEvents ^ pAdvise, [Runtime::InteropServices::Out] System::UInt32 % pCookie);
int AdviseCollectionChangeEvents(Microsoft::VisualStudio::Shell::Interop::IVsUICollectionChangeEvents const & pAdvise, [Runtime::InteropServices::Out] unsigned int & pCookie);
public int AdviseCollectionChangeEvents (Microsoft.VisualStudio.Shell.Interop.IVsUICollectionChangeEvents pAdvise, out uint pCookie);
abstract member AdviseCollectionChangeEvents : Microsoft.VisualStudio.Shell.Interop.IVsUICollectionChangeEvents * -> int
Public Function AdviseCollectionChangeEvents (pAdvise As IVsUICollectionChangeEvents, ByRef pCookie As UInteger) As Integer
Paramètres
- pAdvise
- IVsUICollectionChangeEvents
[in] Interface à appeler.
- pCookie
- UInt32
[out] Emplacement pour retourner un identificateur pour l'événement.
Retours
Retourne S_OK si le récepteur est inscrit.