Count Property
Collapse the table of content
Expand the table of content

SortedDictionary<TKey, TValue>.KeyCollection.Count Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the number of elements contained in the SortedDictionary<TKey, TValue>.KeyCollection.

Namespace:  System.Collections.Generic
Assembly:  System (in System.dll)

public int Count { get; }

Property Value

Type: System.Int32
The number of elements contained in the SortedDictionary<TKey, TValue>.KeyCollection.

Implements

ICollection<T>.Count
ICollection.Count

Getting the value of this property is an O(1) operation.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft