DataObject.IDataObject.EnumDAdvise Method (IEnumSTATDATA)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

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

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

[SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)]
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.

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

SecurityPermission

for calling unmanaged code. Associated enumeration: SecurityPermissionFlag.UnmanagedCode

.NET Framework
Available since 2.0
Return to top
Show: