Sitecore 5.0 API

StringHashtable.Add Method (StringHashtable)

Adds a StringHashtable to the table.

[Visual Basic]
Overloads Public Sub Add( _
   ByVal hash As StringHashtable _
)
[C#]
public void Add(
   StringHashtable hash
);

Parameters

hash
A StringHashtable.

Remarks

Each key/value pair is added to the table. If the tables contain values with the same key, an exception is thrown.

Example

  StringHashtable table1 = new StringHashtable();
  table1.Add("myKey", "Hello world");
  
  StringHashtable table2 = new StringHashtable();
  table2.Add(table1);

See Also

StringHashtable Class | Sitecore.Collections Namespace | StringHashtable.Add Overload List