Implemented interface member:
property
Count
System.Collections.ICollection.Count
1 override of Count
System.Data.Common (1)
System\Data\DataRowCollection.cs (1)
36public override int Count => _list.Count;
199 references to Count
Accessibility_Core_App (1)
DataBindingExample.cs (1)
92int col_Count = dataSet.Tables[0].Columns.Count;
Microsoft.Data.Analysis (2)
DataFrame.IO.cs (2)
146if (table.Columns.Count == 0) 155if (table.Columns.Count != columnsCount)
PresentationFramework-SystemData (1)
SystemDataExtension.cs (1)
196if (0 <= index && index < table.Columns.Count)
System.Data.Common (192)
System\Data\Common\DataColumnMapping.cs (1)
94if ((0 <= index) && (index < columns.Count))
System\Data\Common\DataTableMapping.cs (1)
141if ((0 <= index) && (index < tables.Count))
System\Data\ConstraintCollection.cs (5)
386for (int i = 0; i < Table.ChildRelations.Count; i++) 396for (int i = 0; i < Table.ParentRelations.Count; i++) 427for (int i = 0; i < _table.ParentRelations.Count; i++) 431for (int i = 0; i < _table.ChildRelations.Count; i++) 596int count = Count;
System\Data\DataColumn.cs (4)
743for (int i = 0; i < _table.Constraints.Count; i++) 1564var parentRelations = new DataRelation[Table!.ParentRelations.Count]; 1650for (int i = 0; i < rels.Count; i++) 1662for (int i = 0; i < rels.Count; i++)
System\Data\DataColumnCollection.cs (6)
489for (int i = 0; i < _table.ParentRelations.Count; i++) 500for (int i = 0; i < _table.ChildRelations.Count; i++) 511for (int i = 0; i < _table.Constraints.Count; i++) 696int count = Count; 721for (int i = 0; i < Count; i++) 770if (0 > newPosition || newPosition > Count - 1)
System\Data\DataError.cs (1)
141int newCapacity = Math.Min(_count * 2, column.Table!.Columns.Count);
System\Data\DataRelationCollection.cs (2)
261int count = Count; 402int relationCount = Count;
System\Data\DataRow.cs (5)
425object[] values = new object[_columns.Count]; 440if (_columns.Count < value.Length) 1401for (int i = 0; i < _columns.Count; i++) 1413for (int i = 0; i < _columns.Count; i++) 1424for (int i = 0; i < _columns.Count; i++)
System\Data\DataRowComparer.cs (3)
155int count = leftRow.Table.Columns.Count; 156if (count != rightRow.Table.Columns.Count) 187if (row.Table.Columns.Count > 0)
System\Data\DataSet.cs (42)
134for (int i = 0; i < Tables.Count; i++) 352info.AddValue("DataSet.Tables.Count", Tables.Count); 355for (int i = 0; i < Tables.Count; i++) 369for (int i = 0; i < Tables.Count; i++) 378for (int i = 0; i < Tables.Count; i++) 390for (int i = 0; i < Tables.Count; i++) 490for (int i = 0; i < Tables.Count; i++) 856for (int i = 0; i < Tables.Count; i++) 1004for (int i = 0; i < Tables.Count; i++) 1065for (int i = 0; i < Tables.Count; i++) 1096for (int i = 0; i < Tables.Count; i++) 1101for (int i = 0; i < Tables.Count; i++) 1123for (int i = 0; i < Tables.Count; i++) 1153if (ds.Tables.Count > 0) // To clean up all the schema in strong typed dataset. 1171for (int i = 0; i < tbls.Count; i++) 1180for (int i = 0; i < tbls.Count; i++) 1183for (int j = 0; j < constraints.Count; j++) 1202for (int i = 0; i < rels.Count; i++) 1230for (int i = 0; i < tbls.Count; i++) 1279for (int i = 0; i < Tables.Count; i++) 1283for (int j = 0; j < table.Columns.Count; j++) 1338TableChanges[] bitMatrix = new TableChanges[Tables.Count]; 1423int relationCount = relations.Count; 1553for (int i = 0; i < Tables.Count; i++) 2098if (Tables.Count == 0) 2225if (!fSchemaFound && Tables.Count == 0) 2252if (!fSchemaFound && Tables.Count == 0 && !topNode.HasChildNodes) 2309if (!fSchemaFound && Tables.Count == 0) 3234for (int i = 0; i < Tables.Count; i++) 3243for (int i = 0; i < Tables.Count; i++) 3270for (int i = 0; i < Tables.Count; i++) 3291for (int i = 0; i < Tables.Count; i++) 3294for (int j = 0; j < cons.Count;) 3323for (int i = 0; i < Relations.Count; i++) 3334for (int i = 0; i < Tables.Count; i++) 3337for (int j = 0; j < constraints.Count; j++) 3363for (int i = 0; i < Relations.Count; i++) 3374for (int i = 0; i < Tables.Count; i++) 3377for (int j = 0; j < constraints.Count; j++) 3668if (Tables.Count == 0) 3673var dataTables = new DataTable[Tables.Count]; 3674for (int i = 0; i < Tables.Count; i++)
System\Data\DataTable.cs (43)
329Debug.Assert(ds.Tables.Count == 1, "There should be exactly 1 table here"); 368info.AddValue("DataTable.Columns.Count", Columns.Count); 382for (int i = 0; i < Columns.Count; i++) 455Debug.Assert(Columns.Count == 0, "There is column in Table"); 529for (int i = 0; i < Constraints.Count; i++) 665int colCount = Columns.Count; 676int colCount = Columns.Count; 692int colCount = Columns.Count; 802for (int i = 0; i < Columns.Count; i++) 2335if (clone.Columns.Count > 0) // To clean up all the schema in strong typed dataset. 2370if ((destinationTable != null && destinationTable.Columns.Count > 0)) 2426for (int i = 0; i < clmns.Count; i++) 2434for (int i = 0; i < clmns.Count; i++) 2454for (int j = 0; j < Constraints.Count; j++) 2484for (int j = 0; j < Constraints.Count; j++) 2711for (int i = 0; i < Columns.Count; i++) 2807int columnCount = _columnCollection.Count; 3389int colCount = _columnCollection.Count; // Perf: use the readonly columnCollection field directly 3425int count = _columnCollection.Count; 4037int count = dr.Count; 4045count = dr.Count; 4180int columnCount = _columnCollection.Count; 4190int constraintCount = _constraintCollection.Count; 4357for (int j = 0; j < ParentRelations.Count; j++) 4367for (int j = 0; j < ChildRelations.Count; j++) 4860for (int i = Columns.Count - 1; i >= position; i--) 4908int columnsCount = Columns.Count; 4909int relationsCount = ChildRelations.Count; 5052for (int count = values.Length; count < _columnCollection.Count; count++) 5780if (Columns.Count == 0) 5795if (Columns.Count == 0) 5924if (!fSchemaFound && Columns.Count == 0) 5943if (!fSchemaFound && Columns.Count == 0) 6022if (Columns.Count == 0) 6048if (Columns.Count == 0) 6175if (Columns.Count == 0) 6225if (Columns.Count == 0) 6252if (Columns.Count == 0) 6549if (Columns.Count == 0) 6890for (int tableIndex = 0; tableIndex < ds.Tables.Count; ++tableIndex) 6912for (int tableIndex = 0; tableIndex < _targetDS.Tables.Count; ++tableIndex) 7238for (int j = 0; j < ParentRelations.Count; j++) 7270for (int j = 0; j < ChildRelations.Count; j++)
System\Data\DataTableCollection.cs (2)
405if (table.ChildRelations.Count != 0 || table.ParentRelations.Count != 0)
System\Data\DataTableReader.cs (1)
288return _currentDataTable.Columns.Count;
System\Data\DataView.cs (1)
1695columnNames = new string[Table!.Columns.Count];
System\Data\DataViewManagerListItemTypeDescriptor.cs (1)
120int tableCount = dataSet.Tables.Count;
System\Data\DataViewSettingCollection.cs (1)
135return (ds == null) ? 0 : ds.Tables.Count;
System\Data\Filter\AggregateNode.cs (2)
89if (relations.Count > 1) 93if (relations.Count == 1)
System\Data\Filter\LookupNode.cs (1)
42if (relations.Count > 1)
System\Data\ForeignKeyConstraint.cs (1)
909for (int i = 0; i < rels.Count; i++)
System\Data\Merger.cs (7)
67for (int i = 0; i < source.Tables.Count; i++) 79for (int i = 0; i < source.Relations.Count; i++) 354int oldCount = targetTable.Columns.Count; 355for (int i = 0; i < table.Columns.Count; i++) 396for (int i = oldCount; i < targetTable.Columns.Count; i++) 461for (int i = 0; i < source.Tables.Count; i++) 472for (int i = 0; i < table.Constraints.Count; i++)
System\Data\ProviderBase\SchemaMapping.cs (5)
583bool alwaysCreateColumns = ((_dataTable.Columns.Count == 0) && ((_tableMapping.ColumnMappings == null) || (_tableMapping.ColumnMappings.Count == 0)) && (mappingAction == MissingMappingAction.Passthrough)); 781|| (0 == _dataTable.Columns.Count)); 1089int constraintCount = constraints.Count; 1227int mappingCount = columnCollection.Count; 1250_mappedDataValues = new object[columnCollection.Count];
System\Data\RecordManager.cs (4)
69for (int i = 0; i < _table.Columns.Count; i++) 127int count = _table._columnCollection.Count; 154int count = _table._columnCollection.Count; 225int count = _table.Columns.Count;
System\Data\Select.cs (1)
299_candidateColumns = new ColumnInfo[_table.Columns.Count];
System\Data\Selection.cs (1)
101IndexField[] fields = new IndexField[columns.Count];
System\Data\XDRSchema.cs (1)
613for (int j = 0; j < childRelations.Count; j++)
System\Data\XmlDataLoader.cs (3)
203int cCols = columns.Count; 716object[] foundColumns = new object[collection.Count]; 887object[] foundColumns = new object[collection.Count];
System\Data\xmlsaver.cs (19)
350for (int t = 0; t < ds.Tables.Count; t++) 357for (int c = 0; c < table.Columns.Count; c++) 366for (int r = 0; r < ds.Relations.Count; r++) 510if (table.ParentRelations.Count == 0) 515for (int j = 0; j < table.ParentRelations.Count; j++) 767rels = new DataRelation[ds.Relations.Count]; 768for (int i = 0; i < ds.Relations.Count; i++) 1796int cCount = columns.Count; 1807for (int j = 0; j < childRelations.Count; j++) 1925for (int j = 0; j < childRelations.Count; j++) 1996for (int i = 0; i < constraints.Count; i++) 2281for (int i = 0; i < ds.Tables.Count; i++) 2375for (int i = 0; i < _ds!.Tables.Count; ++i) 2393for (int i = 0; i < _ds!.Tables.Count; ++i) 2431int colCount = table.Columns.Count; 2507int colCount = table.Columns.Count; 2732if (table.ParentRelations.Count == 0) 2737for (int j = 0; j < table.ParentRelations.Count; j++) 2779int colCount = row.Table.Columns.Count;
System\Data\XMLSchema.cs (14)
103for (int i = 0; i <= table.Columns.Count; i++) 443for (int i = 0; i < rels.Count; ++i) 659bool newDataSet = (ds.Tables.Count == 0); 815for (int j = 0; j < childRelations.Count; j++) 834if (FromInference && ds.Tables.Count == 0 && string.Equals(ds.DataSetName, "NewDataSet", StringComparison.Ordinal)) 844if (ds.Tables.Count > 0) 953for (int j = 0; j < childRelations.Count; j++) 1485if (!FromInference || (isSimpleContent && table.Columns.Count == 0)) 1642for (int i = 0; i < table!.Columns.Count; i++) 1714for (int j = 0; j < childRelations.Count; j++) 2075if (ordinal > -1 && ordinal < table.Columns.Count) 2177if (ordinal > -1 && ordinal < table.Columns.Count) 2534if (ordinal > -1 && ordinal < table.Columns.Count) 2719List<DataTable> _tableList = new List<DataTable>(_ds.Tables.Count);
System\Data\XmlToDatasetMap.cs (3)
95ColumnsSchemaMap = new XmlNodeIdHashtable(tableSchema.Columns.Count); 264_tableSchemaMap = new XmlNodeIdHashtable(dataSet.Tables.Count); 287_tableSchemaMap = new XmlNodeIdHashtable(dataSet.Tables.Count);
System\Xml\DataPointer.cs (1)
125int cColumns = columns.Count;
System\Xml\DataSetMappper.cs (1)
377for (; iColumn < columns.Count; iColumn++)
System\Xml\XmlDataDocument.cs (7)
196if (_dataSet.Tables.Count > 0) 283if (_dataSet.Tables.Count > 0) 819int cCols = columns.Count; 3044if (ds == null || ds.Tables.Count == 0) 3050retValue = new DataTable[ds.Tables.Count]; 3058retValue = new DataTable[ds!.Tables.Count]; 3063if (dt.ParentRelations.Count == 0)
System\Xml\XPathNodePointer.cs (2)
549int cColumns = columns.Count; 569int iColumn = (col != null) ? col.Ordinal - 1 : columns.Count - 1;
System.Data.Odbc (3)
src\libraries\Common\src\System\Data\ProviderBase\DbMetaDataFactory.cs (2)
80for (int i = 0; i < destinationColumns.Count; i++) 176object[] values = new object[resultTable.Columns.Count];
System\Data\Odbc\OdbcMetaDataFactory.cs (1)
1074values = new object[resultTable.Columns.Count];