Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
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: 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.