Sitecore 5.1.1 API

StringHashtable.Item Property

Gets or sets a string by its key.

[Visual Basic]
Public Default Property Item( _
   ByVal sKey As String _
) As String
[C#]
public string this[
   string sKey
] {get; set;}

Parameters

sKey
The key of the string.

Property Value

The string identified by the key.

Remarks

Any null values are converted to blanks.

Example

  StringHashtable table = new StringHashtable();
  table["myKey"] = "Hello world";

See Also

StringHashtable Class | Sitecore.Collections Namespace