Share via


ClipboardObject.IDataObject.EnumDAdvise Method

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

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Private Function EnumDAdvise ( _
    <OutAttribute> ByRef enumAdvise As IEnumSTATDATA _
) As Integer Implements IDataObject.EnumDAdvise
int IDataObject.EnumDAdvise(
    out IEnumSTATDATA enumAdvise
)
private:
virtual int EnumDAdvise(
    [OutAttribute] IEnumSTATDATA^% enumAdvise
) sealed = IDataObject::EnumDAdvise
private abstract EnumDAdvise : 
        enumAdvise:IEnumSTATDATA byref -> int  
private override EnumDAdvise : 
        enumAdvise:IEnumSTATDATA byref -> int
JScript does not support explicit interface implementations.

Parameters

  • enumAdvise
    Type: System.Runtime.InteropServices.ComTypes.IEnumSTATDATA%

    Out parameter. When this method returns, this parameter contains a value from the IEnumSTATDATA enumeration that receives the interface reference to the new enumerator object. If the implementation sets enumAdvise to nulla null reference (Nothing in Visual Basic), there are no connections to advisory sinks at this time. This parameter is passed uninitialized.

Return Value

Type: System.Int32
S_OK if the enumerator object is successfully instantiated or there are no connections, OLE_E_ADVISENOTSUPPORTED error if the clipboard object does not support advisory notifications, or E_OUTOFMEMROY.

Implements

IDataObject.EnumDAdvise(IEnumSTATDATA%)

Remarks

This method delegates the call to the corresponding EnumDAdvise from the System.Runtime.InteropServices.ComTypes namespace, assuming that the clipboard object is wrapping an existing IDataObject.

.NET Framework Security

See Also

Reference

ClipboardObject Class

Microsoft.VisualStudio.Data.Framework Namespace