NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

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

Creates a new atom for the characters at the specified range of chararacters in the specified string.

[Visual Basic]
Overloads Function Add( _
   ByVal array() As Char, _
   ByVal offset As Integer, _
   ByVal length As Integer _
) As String
[C#]
string Add(
   char[] array,
   int offset,
   int length
);
[C++]
String* Add(
   __wchar_t* array[],
   int offset,
   int length
) = 0;
[JScript]
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

Returns atomized string. Returns String.Empty if length is zero. Returns the existing atom if one already exists.

Exceptions

Exception Type Condition
IndexOutOfRangeException if 0 > offset > array.Length or 0 > length > array.Length- offset.

See Also

XmlNameTable Interface | XmlNameTable Members | System.NewXml Namespace | XmlNameTable.Add Overload List