Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XmlReader.XmlLang Property

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

[Visual Basic]
Public MustOverride ReadOnly Property XmlLang As String
[C#]
public abstract string XmlLang {get;}
[C++]
public: __property virtual String* get_XmlLang() = 0;
[JScript]
public abstract function get XmlLang() : String;

Property Value

The current xml:lang scope.

Remarks

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.

The string returned is also in NameTable.

Example

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

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

XmlReader Class | XmlReader Members | System.Xml Namespace

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft