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 ppenumAdvise As IEnumSTATDATA _
) As Integer Implements IDataObject.EnumDAdvise
int IDataObject.EnumDAdvise(
    out IEnumSTATDATA ppenumAdvise
)
private:
virtual int EnumDAdvise(
    [OutAttribute] IEnumSTATDATA^% ppenumAdvise
) sealed = IDataObject::EnumDAdvise
private abstract EnumDAdvise : 
        ppenumAdvise:IEnumSTATDATA byref -> int  
private override EnumDAdvise : 
        ppenumAdvise:IEnumSTATDATA byref -> int
JScript does not support explicit interface implementations.

Parameters

  • ppenumAdvise
    Type: Microsoft.VisualStudio.OLE.Interop.IEnumSTATDATA%

    Out parameter. When this method returns, contains a value from the IEnumSTATDATA enumeration that receives the interface reference to the new enumerator object. If the implementation sets ppenumAdvise 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 wrap an existing IDataObject (from the Microsoft.VisualStudio.OLE.Interop namespace), or an error code.

Implements

IDataObject.EnumDAdvise(IEnumSTATDATA%)

Remarks

If the clipboard object wraps an existing IDataObject (from the Microsoft.VisualStudio.OLE.Interop namespace), this method delegates the call to the corresponding EnumDAdvise from that namespace. Otherwise, it returns the OLE_E_ADVISENOTSUPPORTED error.

.NET Framework Security

See Also

Reference

ClipboardObject Class

Microsoft.VisualStudio.Data.Framework Namespace