NameObjectCollectionBase::Count Property
.NET Framework (current version)
Gets the number of key/value pairs contained in the NameObjectCollectionBase instance.
Assembly: System (in System.dll)
Property Value
Type: System::Int32The number of key/value pairs contained in the NameObjectCollectionBase instance.
Implements
ICollection::CountThe capacity is the number of elements that the NameObjectCollectionBase can store. Count is the number of elements that are actually in the NameObjectCollectionBase.
The capacity is always greater than or equal to Count. If Count exceeds the capacity while adding elements, the capacity is automatically increased by reallocating the internal array before copying the old elements and adding the new elements.
Retrieving the value of this property is an O(1) operation.
Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Available since 10
.NET Framework
Available since 1.1
Show: