XmlParserContext.XmlLang Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the current xml:lang scope.

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

public string XmlLang { get; set; }

Property Value

Type: System.String

The current xml:lang scope. If there is no xml:lang in scope, String.Empty is returned.

For details on valid xml:lang values, refer to section 2.12 of the W3C Extensible Markup Language (XML) 1.0 recommendation.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top