XmlNameTable.Add Method (Char[], Int32, Int32)

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

Namespace: System.Xml
Assembly: System.Xml (in system.xml.dll)

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

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.

Return Value

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

Exception typeCondition

IndexOutOfRangeException

0 > offset

-or-

offset >= array.Length

-or-

length > array.Length

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

ArgumentOutOfRangeException

length < 0.

For more information on atomized strings, see XmlNameTable.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0
Show: