Count Property

SortedDictionary(Of TKey, TValue).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 key/value pairs contained in the SortedDictionary(Of TKey, TValue).

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

'Declaration
Public ReadOnly Property Count As Integer

Property Value

Type: System.Int32
The number of key/value pairs contained in the SortedDictionary(Of TKey, TValue).

Implements

ICollection(Of 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