Mono Class Library: System.Xml.NameTable Overview | MembersSystem.Xml.NameTable.Add Method |
Adds the string equivalent of a specified subset of a char array to the table if the string equivalent does not already exist in the table. [Edit]
|
The string equivalent of the specified subset of the char array that is stored in the table, or string.Empty if len is zero. [Edit]
Type Reason IndexOutOfRangeException start < 0.
- or -
start >= key.Length.
- or -
len > key.Length - start.
The above conditions do not cause an exception to be thrown if len = 0.
[Edit]ArgumentOutOfRangeException len < 0. [Edit]
Only a single instance of any given string is stored in the table. Calling this method with the same subset (containing the same characters) of any char array, returns the same instance of the string equivalent.
Note:[Edit]This method overrides XmlNameTable.Add(Char[], int, int)(Char[], Int32, Int32).
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0