Share via


COMError.number Method

Returns the error code of the error that occurred when the COM object was called.

Syntax

public int number()

Run On

Called

Return Value

Type: int
The error code; 0 (zero) if no error occurred when the COM object was called.

Remarks

The number property is read-only.

See Also

Reference

COMError Class