ResourceContextLanguagesVectorView class

Applies to Windows and Windows Phone

Represents a collection of ResourceContext language qualifiers.

Syntax


var resourceContextLanguagesVectorView = resourceContext.languages;

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06020000)]

Members

The ResourceContextLanguagesVectorView class has these types of members:

Methods

The ResourceContextLanguagesVectorView class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
First [C++, JavaScript]Returns an iterator to enumerate the items in the set of ResourceContext language qualifiers.
GetAt [C++, JavaScript]Returns the ResourceContext language qualifier at the specified index in the set.
GetMany [C++, JavaScript]Returns the ResourceContext language qualifiers that start at the specified index in the set.
IndexOf [C++, JavaScript]Returns the index of a specified ResourceContext language qualifier in the set.

 

Properties

The ResourceContextLanguagesVectorView class has these properties.

PropertyAccess typeDescription

Count [C#, VB]

Read-onlyGets the number of elements contained in the collection.

Item [C#, VB]

Read-onlyGets or sets the element at the specified index.

Size [C++, JavaScript]

Read-onlyGets the number of ResourceContext language qualifiers in the set.

 

Remarks

Collection member lists

For JavaScript, ResourceContextLanguagesVectorView has the members shown in the member lists. In addition, ResourceContextLanguagesVectorView supports a length property, members of Array.prototype, and using an index to access items.

Enumerating the collection in C# or Microsoft Visual Basic

A ResourceContextLanguagesVectorView is enumerable, so you can use language-specific syntax such as foreach in C# to enumerate the items in the collection. The compiler does the type-casting for you and you won't need to cast to IEnumerable<String> explicitly. If you do need to cast explicitly, for example if you want to call GetEnumerator, cast to IEnumerable<T> with a String constraint.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.ApplicationModel.Resources.Core
Windows::ApplicationModel::Resources::Core [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft