Partager via


IVsDataObjectStringMapManager.AdviseChanges Method

Sets a callback function to be called when the string map changes.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

Syntax

'Déclaration
Function AdviseChanges ( _
    pObject As IDataObject, _
    pStringMapEvents As IVsDataObjectStringMapEvents, _
    <OutAttribute> ByRef pdwCookie As UInteger _
) As Integer
'Utilisation
Dim instance As IVsDataObjectStringMapManager
Dim pObject As IDataObject
Dim pStringMapEvents As IVsDataObjectStringMapEvents
Dim pdwCookie As UInteger
Dim returnValue As Integer

returnValue = instance.AdviseChanges(pObject, _
    pStringMapEvents, pdwCookie)
int AdviseChanges(
    IDataObject pObject,
    IVsDataObjectStringMapEvents pStringMapEvents,
    out uint pdwCookie
)
int AdviseChanges(
    [InAttribute] IDataObject^ pObject, 
    [InAttribute] IVsDataObjectStringMapEvents^ pStringMapEvents, 
    [OutAttribute] unsigned int% pdwCookie
)
abstract AdviseChanges : 
        pObject:IDataObject * 
        pStringMapEvents:IVsDataObjectStringMapEvents * 
        pdwCookie:uint32 byref -> int 
function AdviseChanges(
    pObject : IDataObject, 
    pStringMapEvents : IVsDataObjectStringMapEvents, 
    pdwCookie : uint
) : int

Parameters

  • pdwCookie
    Type: System.UInt32%
    [out] An unsigned integer that identifies the string map that changed.

Return Value

Type: System.Int32
Returns S_OK if the callback was successfully registered.

.NET Framework Security

See Also

Reference

IVsDataObjectStringMapManager Interface

IVsDataObjectStringMapManager Members

Microsoft.VisualStudio.Shell.Interop Namespace