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)
92Debug.Assert( 0 != _errors.Count, "empty error collection?" ); // must be something in the collection 101if (temp.Count <= 0) { 122Debug.Assert( null == _warnings || 0 != _warnings.Count, "empty warning collection?" );// must be something in the collection
fx\src\data\System\Data\SqlClient\SqlCommand.cs (2)
2243for (int i = 0; i < sqlEx.Errors.Count; i++) { 4198for (int i = 0; i < ex.Errors.Count; i++) {
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
1730Debug.Assert(exception != null && exception.Errors.Count != 0, "SqlConnection: OnError called with null or empty exception!");
fx\src\data\System\Data\SqlClient\SqlException.cs (3)
77return ((null != _errors) && (0 < _errors.Count)); 156Debug.Assert(null != errorCollection && errorCollection.Count > 0, "no errorCollection?"); 160for (int i = 0; i < errorCollection.Count; i++) {
fx\src\data\System\Data\SqlClient\SqlInfoMessageEvent.cs (1)
24return (null != exception) && (0 < exception.Errors.Count);
fx\src\data\System\Data\SqlClient\SqlUtil.cs (1)
1297for (int i =0; i < exThrown.Errors.Count; i++) {
fx\src\data\System\Data\SqlClient\TdsParser.cs (4)
1244Debug.Assert(temp.Count > 0, "TdsParser::ThrowExceptionAndWarning called with no exceptions or warnings!"); 1245if (temp.Count == 0) 1254if ((_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))) { 1268if (temp != null && temp.Count > 0) {
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (6)
3293count = _errors.Count; 3327count = _warnings.Count; 3342count = _preAttentionErrors.Count; 3357count = _preAttentionWarnings.Count; 3425_hasErrorOrWarning = (((_preAttentionErrors != null) && (_preAttentionErrors.Count > 0)) || ((_preAttentionWarnings != null) && (_preAttentionWarnings.Count > 0)));