XmlLanguage Class
Represents a language tag for use in XAML markup.
Assembly: PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml
The XmlLanguage type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | Empty | Gets a static XmlLanguage instance as would be created by GetLanguage with the language tag as an empty attribute string. |
![]() | IetfLanguageTag | Gets the string representation of the language tag. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetEquivalentCulture | Returns the appropriate equivalent CultureInfo for this XmlLanguage, if and only if such a CultureInfo is registered for the IetfLanguageTag value of this XmlLanguage |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() ![]() | GetLanguage | Returns a XmlLanguage instance, based on a string representing the language per RFC 3066. |
![]() | GetSpecificCulture | Returns the most-closely-related non-neutral CultureInfo for this XmlLanguage. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a String that represents the current XmlLanguage. (Overrides Object::ToString().) |
The language tag may or may not have a registered CultureInfo present on the system where the XAML is interpreted.
This class is useful for dealing with values represented using xml:lang in XML.
Language tags can be specified in two-character form or in a hyphenated language-locale form. See RFC 3066.
Note that the XML specification allows the empty string for xml:lang, although that is not permitted by RFC 3066; therefore, the XmlLanguage type permits "" (empty attribute string). A default-constructed XmlLanguage behaves as if constructed with "" (empty string).
Windows 7, Windows Vista SP1 or later, Windows XP SP3, 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.
