ADO 2.5 API Reference

Number Property

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 Chapter 16 of the OLE DB Programmer's Reference.

See Also

Visual Basic Example | Visual C++ Example | Visual J++ Example

Description Property | HelpContext, HelpFile Properties | Source Property (ADO Error)

Applies To: Error Object

© 1998-2003 Microsoft Corporation. All rights reserved.