Sitecore 5.1.1 API

HashList.Add Method 

Adds an object to the hash table.

[Visual Basic]
Public Sub Add( _
   ByVal sKey As String, _
   ByVal obj As Object _
)
[C#]
public void Add(
   string sKey,
   object obj
);

Parameters

sKey
A key uniquely describing the object.
obj
An object.

Example

  Hashtable hashTable = new Hashtable();
  hashTable.Add("0", "apples");
  hashTable.Add("1", "bananas");
  hashTable.Add("2", "pears");

See Also

HashList Class | Sitecore.Collections Namespace