NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

SQLError.Number

Gets the error code returned from the SQL Server adapter.

[Visual Basic]
Public ReadOnly Property Number As Integer
[C#]
public int Number {get;}
[C++]
public: __property int get_Number();
[JScript]
public function get Number() : int;

Property Value

The error code.

Example [Visual Basic]

The following example returns the value of the error code.

[Visual Basic]

Function GetErrorCode(sqlErr As SQLError) As Integer
   GetErrorCode = sqlErr.Number
End Function

See Also

SQLError Class | SQLError Members | System.Data.SQL Namespace | State | Class | Source | Server | Message | Procedure | LineNumber