Get()

XmlNameTable::Get(const ArrayPtr<char16_t>&, int32_t, int32_t) method

When overridden in a derived class, gets the atomized string containing the same characters as the specified range of characters in the given array.

virtual const String & System::Xml::XmlNameTable::Get(const ArrayPtr<char16_t> &array, int32_t offset, int32_t length)=0

Arguments

ParameterTypeDescription
arrayconst ArrayPtr<char16_t>&The character array containing the name to look up.
offsetint32_tThe zero-based index into the array specifying the first character of the name.
lengthint32_tThe number of characters in the name.

Return Value

The atomized string or nullptr if the string has not already been atomized. If length is zero, String::Empty is returned.

Exceptions

ExceptionDescription
IndexOutOfRangeException0 > offset or offset >= array.Length or length > array.Length The above conditions do not cause an exception to be thrown if length = 0.
ArgumentOutOfRangeExceptionlength < 0.

XmlNameTable::Get(const String&) method

When overridden in a derived class, gets the atomized string containing the same value as the specified string.

virtual const String & System::Xml::XmlNameTable::Get(const String &array)=0

Arguments

ParameterTypeDescription
arrayconst String&The name to look up.

Return Value

The atomized string or nullptr if the string has not already been atomized.

Exceptions

ExceptionDescription
ArgumentNullExceptionarray is nullptr.

See Also