ErrorNo Property

Visual Studio .NET 2003

Specifies the error number for an Exception object. Read/write at run time.


Property Value

Numeric data type


If the exception results from a THROW command that specifies a value for the eUserExpression parameter, the value of ErrorNo is 2071.

Identical to the value returned by the ERROR() function and the first element in the array produced by the AERROR() function.

See Also

Properties | Exception Object Properties, Methods, and Events | ERROR( ) Function | AERROR( ) Function | SYS(2018) - Error Message Parameter | TRY...CATCH...FINALLY Command | Structured Error Handling

Applies To: Exception Class