System.Xml.NameTable.Get Method

Gets the atomized string containing the same characters as the specified range of characters in the given array.

Syntax

public override string Get (char[] key, int start, int len)

Parameters

key
The character array containing the name to find.
start
The zero-based index into the array specifying the first character of the name.
len
The number of characters in the name.

Returns

The atomized string or null if the string has not already been atomized. If len is zero, String.Empty is returned.

Exceptions

TypeReason
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.

ArgumentOutOfRangeExceptionlen < 0.

Remarks

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

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