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.

Language.GetExtensionSubtags | getExtensionSubtags method

Applies to Windows and Windows Phone

Retrieves a vector of extension subtags in the current language for the given extension identified by singleton.

Syntax


var iVectorView = language.getExtensionSubtags(singleton);

Parameters

singleton

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

A single-character subtag for the LanguageTag of the current language. See BCP-47 language tags, Extensions and the Extensions Registry.

Return value

Type: IVectorView<String> [JavaScript/C++] | System.Collections.Generic.IReadOnlyList<String> [.NET]

The list of extension subtags identified by singleton.

Remarks

If singleton does not exist for the current language, the returned vector is empty.

If singleton is a known system (such as "u", the Unicode extension), the returned subtags may be combined into logical units. For example, "de-DE-u-attr-co-phonebk" returns a vector with two items: "attr" and "co-phonebk". If singleton is unknown, each subtag is returned in a separate item.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Globalization
Windows::Globalization [C++]

Metadata

Windows.winmd

See also

Language
LanguageTag
BCP-47 language tags, Extensions and the Extensions Registry
BCP-47 language tags, Extension Subtags

 

 

Show:
© 2014 Microsoft