This documentation is archived and is not being maintained.

DataObject.IDataObject.EnumDAdvise Method

Creates an object that can be used to enumerate the current advisory connections.

Namespace:  System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

int IDataObject.EnumDAdvise(
	out IEnumSTATDATA enumAdvise
)

Parameters

enumAdvise
Type: System.Runtime.InteropServices.ComTypes.IEnumSTATDATA%
When this method returns, contains an IEnumSTATDATA that receives the interface pointer to the new enumerator object. If the implementation sets enumAdvise to null, there are no connections to advisory sinks at this time. This parameter is passed uninitialized.

Return Value

Type: System.Int32
This method supports the standard return value E_OUTOFMEMORY, as well as the following:

Value

Description

S_OK

The enumerator object is successfully instantiated or there are no connections.

OLE_E_ADVISENOTSUPPORTED

This object does not support advisory notifications.

Implements

IDataObject.EnumDAdvise(IEnumSTATDATA)

This member is an explicit interface member implementation. It can be used only when the DataObject instance is cast to an IDataObject interface.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: