Szerkesztés

Megosztás a következőn keresztül:


XmlNameTable.Add Method

Definition

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

Overloads

Add(String)

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

Add(Char[], Int32, Int32)

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

Remarks

For more information on atomized strings, see XmlNameTable.

Add(String)

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

public:
 abstract System::String ^ Add(System::String ^ array);
public abstract string Add (string array);
abstract member Add : string -> string
Public MustOverride Function Add (array As String) As String

Parameters

array
String

The name to add.

Returns

The new atomized string or the existing one if it already exists.

Exceptions

array is null.

Remarks

For more information on atomized strings, see XmlNameTable.

Applies to

Add(Char[], Int32, Int32)

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

public:
 abstract System::String ^ Add(cli::array <char> ^ array, int offset, int length);
public abstract string Add (char[] array, int offset, int length);
abstract member Add : char[] * int * int -> string
Public MustOverride Function Add (array As Char(), offset As Integer, length As Integer) As String

Parameters

array
Char[]

The character array containing the name to add.

offset
Int32

Zero-based index into the array specifying the first character of the name.

length
Int32

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

0 > offset

-or-

offset >= array.Length

-or-

length > array.Length

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

Remarks

For more information on atomized strings, see XmlNameTable.

Applies to