Gets the number of errors in the collection.
[Visual Basic] Overridable Public ReadOnly Property Count As Integer [C#] public int Count {virtual get;} [C++] public: __property virtual int get_Count(); [JScript] public function get Count() : int;
The total number of errors in the collection.
The following example uses the property to get the last error from the collection.
[Visual Basic]
Function GetLastSQLError(sqlErrCollect As SQLErrors) As SQLError GetLastSQLError = sqlErrCollect[sqlErrCollect.Count - 1] End Function
SQLErrors Class | SQLErrors Members | System.Data.SQL Namespace