System.Xml.XmlReader.Prefix Property

When overridden in a derived class, gets the namespace prefix associated with the current node.

Syntax

public abstract string Prefix { get; }

Value

A string containing the namespace prefix associated with the current node.

Remarks

Note: A namespace prefix is used as a reference for a namespace URI and is defined in an element declaration. For example, <someElement xmlns:bk="someURL">, defines a prefix name "bk".

Operation

As described above.

This property is read-only.

Note to Inheritors
This property must be overridden in order to provide the functionality described above, as there is no default implementation.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0