Implemented interface member:
property
Count
System.Collections.ICollection.Count
21 references to Count
System.Data (21)
fx\src\data\Microsoft\SqlServer\Server\SmiEventSink_Default.cs (3)
92
Debug.Assert( 0 != _errors.
Count
, "empty error collection?" ); // must be something in the collection
101
if (temp.
Count
<= 0) {
122
Debug.Assert( null == _warnings || 0 != _warnings.
Count
, "empty warning collection?" );// must be something in the collection
fx\src\data\System\Data\SqlClient\SqlCommand.cs (2)
2243
for (int i = 0; i < sqlEx.Errors.
Count
; i++) {
4198
for (int i = 0; i < ex.Errors.
Count
; i++) {
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
1730
Debug.Assert(exception != null && exception.Errors.
Count
!= 0, "SqlConnection: OnError called with null or empty exception!");
fx\src\data\System\Data\SqlClient\SqlException.cs (3)
77
return ((null != _errors) && (0 < _errors.
Count
));
156
Debug.Assert(null != errorCollection && errorCollection.
Count
> 0, "no errorCollection?");
160
for (int i = 0; i < errorCollection.
Count
; i++) {
fx\src\data\System\Data\SqlClient\SqlInfoMessageEvent.cs (1)
24
return (null != exception) && (0 < exception.Errors.
Count
);
fx\src\data\System\Data\SqlClient\SqlUtil.cs (1)
1297
for (int i =0; i < exThrown.Errors.
Count
; i++) {
fx\src\data\System\Data\SqlClient\TdsParser.cs (4)
1244
Debug.Assert(temp.
Count
> 0, "TdsParser::ThrowExceptionAndWarning called with no exceptions or warnings!");
1245
if (temp.
Count
== 0)
1254
if ((_state == TdsParserState.OpenNotLoggedIn) && (_connHandler.ConnectionOptions.TransparentNetworkIPResolution || _connHandler.ConnectionOptions.MultiSubnetFailover || _loginWithFailover) && (temp.
Count
== 1) && ((temp[0].Number == TdsEnums.TIMEOUT_EXPIRED) || (temp[0].Number == TdsEnums.SNI_WAIT_TIMEOUT))) {
1268
if (temp != null && temp.
Count
> 0) {
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (6)
3293
count = _errors.
Count
;
3327
count = _warnings.
Count
;
3342
count = _preAttentionErrors.
Count
;
3357
count = _preAttentionWarnings.
Count
;
3425
_hasErrorOrWarning = (((_preAttentionErrors != null) && (_preAttentionErrors.
Count
> 0)) || ((_preAttentionWarnings != null) && (_preAttentionWarnings.
Count
> 0)));