Sitecore 5.1.1 API

HashList.Remove Method 

Removes an object from the hash table.

[Visual Basic]
Public Sub Remove( _
   ByVal sKey As String _
)
[C#]
public void Remove(
   string sKey
);

Parameters

sKey
A key.

Remarks

No exception is thrown if the key does not exist.

Example

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

See Also

HashList Class | Sitecore.Collections Namespace