Sitecore 5.1.1 API

HashList.Count Property

Gets the number of objects in the hash table.

[Visual Basic]
Public ReadOnly Property Count As Integer
[C#]
public int Count {get;}

Property Value

Gets the number of objects.

Example

  Hashtable hashTable = new Hashtable();
  hashTable.Add("0", "apples");
  hashTable.Add("1", "bananas");
  hashTable.Add("2", "pears");
  
  int count = hashTable.Count; // 3

See Also

HashList Class | Sitecore.Collections Namespace