編輯

共用方式為


OLEDBError Interface

Definition

Represents an OLE DB error returned by the most recent OLE DB query.

public interface class OLEDBError
[System.Runtime.InteropServices.Guid("00024445-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(2)]
public interface OLEDBError
Public Interface OLEDBError
Attributes

Remarks

The OLEDBError object is a member of the OLEDBErrors collection. If the specified OLE DB query runs without error, the OLEDBErrors collection is empty. The errors in the collection are indexed in the order in which they're generated by the OLE DB provider.

Use OLEDBErrors(index), where index is the index number of the OLE DB error, to return a single OLEDBError object.

Properties

Application

Returns an Application object that represents the Microsoft Excel application.

Creator

Returns a 32-bit integer that indicates the application in which this object was created.

ErrorString

Returns the ODBC error string.

Native

Returns a provider-specific numeric value that specifies an error. The error number corresponds to an error condition that resulted after the most recent OLE DB query.

Number

Returns a numeric value that specifies an error. The error number corresponds to a unique trap number corresponding to an error condition that resulted after the most recent OLE DB query.

Parent

Returns the parent object for the specified object.

SqlState

Returns the SQL state error.

Stage

Returns a numeric value specifying the stage of an error that resulted after the most recent OLE DB query.

Applies to