Export (0) Print
Expand All

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
Not applicable.

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 Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

XNA Framework

Supported in: 1.0

Community Additions

ADD
Show:
© 2014 Microsoft