System.Xml.XmlNameTable.Add Method

When overridden in a derived class, atomizes the specified string and adds it to the XmlNameTable.

Syntax

public abstract string Add (char[] array, int offset, int length)

Parameters

array
The character array containing the name to add.
offset
Zero-based index into the array specifying the first character of the name.
length
The number of characters in the name.

Returns

The new atomized string or the existing one if it already exists. If length is zero, String.Empty is returned.

Exceptions

TypeReason
IndexOutOfRangeException

offset < 0.

- or -

offset >= array.Length.

- or -

length > array.Length - offset.

The above conditions do not cause an exception to be thrown if length = 0.

ArgumentOutOfRangeException length < 0.

Remarks

For more information on atomized strings, see System.Xml.XmlNameTable.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0