Share via


Add Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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)

Syntax

'Declaration
Public Overridable Function Add ( _
    key As String _
) As String
public virtual string Add(
    string key
)
public:
virtual String^ Add(
    String^ key
)
abstract Add : 
        key:string -> string 
override Add : 
        key:string -> string 
public function Add(
    key : String
) : String

Parameters

Return Value

Type: System. . :: . .String
The new atomized string or the existing one if it already exists.

Remarks

For more information on atomized strings, see XmlNameTable.

.NET Framework Security

See Also

Reference

XmlNameTable Class

System.Xml Namespace