Gets the number of elements contained in the
System.Collections.CollectionBase instance. This property cannot be overridden.
Syntax
| Visual Basic (Declaration) | |
|---|
Public ReadOnly Property Count As Integer |
| C# | |
|---|
public int Count {get;} |
Property Value
An Integer value, indicating the number of items in the collection.The number of elements contained in the
System.Collections.CollectionBase instance. Retrieving the value of this property is an O(1) operation.
Requirements
Target Platforms: Current Windows operating system with .NET 8.
See Also