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!

SQLErrors.Count

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;

Property Value

The total number of errors in the collection.

Example [Visual Basic]

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

See Also

SQLErrors Class | SQLErrors Members | System.Data.SQL Namespace