Partager via


OLEDBErrors Interface

A collection of OLEDBError objects.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
<InterfaceTypeAttribute()> _
<GuidAttribute("00024446-0000-0000-C000-000000000046")> _
Public Interface OLEDBErrors _
    Inherits IEnumerable
'Usage
Dim instance As OLEDBErrors
[InterfaceTypeAttribute()]
[GuidAttribute("00024446-0000-0000-C000-000000000046")]
public interface OLEDBErrors : IEnumerable

Remarks

Each OLEDBError object represents an error returned by the most recent OLE DB query. If the specified ODBC query runs without error, the ODBCErrors collection is empty. The errors in the collection are indexed in the order in which they’re generated by the OLE DB provider. You cannot add members to the collection.

Use the OLEDBErrors property to return the ODBCErrors collection.

See Also

Reference

OLEDBErrors Members

Microsoft.Office.Interop.Excel Namespace