Add Method (String)
Collapse the table of content
Expand the table of content

NameTable.Add Method (String)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Atomizes the specified string and adds it to the NameTable.

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

public override string Add(
	string key
)

Parameters

key
Type: System.String
The string to add.

Return Value

Type: System.String
The atomized string or the existing string if it already exists in the NameTable.

ExceptionCondition
NullReferenceException

key is null.

For more information on atomized strings, see NameTable.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft