DataObject.IDataObject.EnumDAdvise(IEnumSTATDATA) Method

Definition

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

C#
int IDataObject.EnumDAdvise(out System.Runtime.InteropServices.ComTypes.IEnumSTATDATA enumAdvise);
C#
int IDataObject.EnumDAdvise(out System.Runtime.InteropServices.ComTypes.IEnumSTATDATA? enumAdvise);

Parameters

enumAdvise
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.

Returns

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

Remarks

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

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9