Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ICollection<T>.Count Property

Definition

Namespace:
System.Collections.Generic
Assemblies:
mscorlib.dll, System.Runtime.dll
Assemblies:
netstandard.dll, System.Runtime.dll
Assembly:
System.Runtime.dll
Assembly:
mscorlib.dll
Assembly:
netstandard.dll
Source:
ICollection.cs
Source:
ICollection.cs
Source:
Tuple.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets the number of elements contained in the ICollection<T>.

public:
 property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer

Property Value

The number of elements contained in the ICollection<T>.

Applies to


Feedback

Was this page helpful?