IVsDataObjectStringMapManager2.AdviseChanges Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers a listener for the event fired when the string map changes.
public:
int AdviseChanges(Microsoft::VisualStudio::OLE::Interop::IDataObject ^ pObject, Microsoft::VisualStudio::Shell::Interop::IVsDataObjectStringMapEvents ^ pStringMapEvents, [Runtime::InteropServices::Out] System::UInt32 % pdwCookie);
int AdviseChanges(Microsoft::VisualStudio::OLE::Interop::IDataObject const & pObject, Microsoft::VisualStudio::Shell::Interop::IVsDataObjectStringMapEvents const & pStringMapEvents, [Runtime::InteropServices::Out] unsigned int & pdwCookie);
public int AdviseChanges (Microsoft.VisualStudio.OLE.Interop.IDataObject pObject, Microsoft.VisualStudio.Shell.Interop.IVsDataObjectStringMapEvents pStringMapEvents, out uint pdwCookie);
abstract member AdviseChanges : Microsoft.VisualStudio.OLE.Interop.IDataObject * Microsoft.VisualStudio.Shell.Interop.IVsDataObjectStringMapEvents * uint32 -> int
Public Function AdviseChanges (pObject As IDataObject, pStringMapEvents As IVsDataObjectStringMapEvents, ByRef pdwCookie As UInteger) As Integer
Parameters
- pObject
- IDataObject
[in] An IDataObject that contains the string map.
- pStringMapEvents
- IVsDataObjectStringMapEvents
[in] An IVsDataObjectStringMapEvents interface that is called when the string map changes.
- pdwCookie
- UInt32
[out] An unsigned integer that identifies the string map that changed.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
Remarks
You need to retain pdwCookie
to use in UnadviseChanges.