IVsDataObjectStringMapManager2::AdviseChanges Method (IDataObject^, IVsDataObjectStringMapEvents^, UInt32)
Visual Studio 2015
Registers a listener for the event fired when the string map changes.
Assembly: Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
int AdviseChanges( IDataObject^ pObject, IVsDataObjectStringMapEvents^ pStringMapEvents, [OutAttribute] unsigned int% pdwCookie )
Parameters
- pObject
-
Type:
Microsoft.VisualStudio.OLE.Interop::IDataObject^
[in] An IDataObject that contains the string map.
- pStringMapEvents
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsDataObjectStringMapEvents^
[in] An IVsDataObjectStringMapEvents interface that is called when the string map changes.
- pdwCookie
-
Type:
System::UInt32
[out] An unsigned integer that identifies the string map that changed.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
You need to retain pdwCookie to use in UnadviseChanges.
Show: