System.Xml.XmlWriter.XmlLang Property

When overridden in a derived class, gets the current xml:lang scope.

Syntax

public virtual string XmlLang { get; }

Value

A string containing the language attribute, or null if the language attribute is not specified for the element.

Remarks

This property allows one component to find out in what state another component has left the writer. For example, perhaps one component wants to tell another which language help text to generate. The language information is communicated by writing an xml:lang attribute.

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