IVsDataObjectStringMapManager.AdviseChanges Method

Definition

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.

Remarks

You need to retain pdwCookie to use in UnadviseChanges.

Applies to