Redigera

Dela via


Number Property (ADO)

Indicates the number that uniquely identifies an Error object.

Return Value

Returns a Long value that may correspond to one of the ErrorValueEnum constants.

Remarks

Use the Number property to determine which error occurred. The value of the property is a unique number that corresponds to the error condition.

The Errors collection returns an HRESULT in either hexadecimal format (for example, 0x80004005) or long value (for example, 2147467259). These HRESULTs can be raised by underlying components, such as OLE DB or even OLE itself. For more information about these numbers, see Errors (OLE DB) in the OLE DB Programmer's Reference.

Applies To

Error Object

See Also

Description, HelpContext, HelpFile, NativeError, Number, Source, and SQLState Properties Example (VB)
Description, HelpContext, HelpFile, NativeError, Number, Source, and SQLState Properties Example (VC++)
Description Property
HelpContext, HelpFile Properties
Source Property (ADO Error)