XmlReader::XmlLang Property

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

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

public:
virtual property String^ XmlLang {
	String^ get ();
}

Property Value

Type: System::String
The current xml:lang scope.

This property represents the xml:lang scope within which the current node resides. For example, here is an XML fragment with xml:lang set to US English in the root element:

<root xml:lang="en-us"> 
<name>Fred</name> 
</root> 

When the reader is positioned on the name element, you can use this property to find that it is in the scope of a US English xml:lang attribute.

See XmlLang (in the XmlTextReader class) for an example using this property.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft