Compartilhar via


IVsDataObjectStringMapManager.AdviseChanges Method

Registers a listener for the event fired 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

'Declaration
Function AdviseChanges ( _
    pObject As IDataObject, _
    pStringMapEvents As IVsDataObjectStringMapEvents, _
    <OutAttribute> ByRef pdwCookie As UInteger _
) As Integer
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: UInt32%

    [out] An unsigned integer that identifies the string map that changed.

Return Value

Type: Int32
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.

.NET Framework Security

See Also

Reference

IVsDataObjectStringMapManager Interface

Microsoft.VisualStudio.Shell.Interop Namespace