ResourceContextLanguagesVectorView ResourceContextLanguagesVectorView ResourceContextLanguagesVectorView ResourceContextLanguagesVectorView Class

Definition

Represents a collection of ResourceContext language qualifiers.

public : sealed class ResourceContextLanguagesVectorView : IIterable<Platform::String>, IVectorView<Platform::String>
public sealed class ResourceContextLanguagesVectorView : IEnumerable<String>, IReadOnlyList<String>
Public NotInheritable Class ResourceContextLanguagesVectorView Implements IEnumerable<String>, IReadOnlyList<String>
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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 with a String constraint.

Properties

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Gets the element at the specified index in the read-only list.

This member is not implemented in C++
T this[int index] { get; }
ReadOnly Property Item(index As Integer) As T
T this[int index] { get; }
Parameters
index

The zero-based index of the element to get.

Value
T T T T

The element at the specified index in the read-only list.

Size Size Size Size

Gets the number of ResourceContext language qualifiers in the set.

public : unsigned int Size { get; }
This member is not implemented in C#
This member is not implemented in VB.Net
var uint = resourceContextLanguagesVectorView.size;
Value
unsigned int uint uint uint

The number of ResourceContext language qualifiers in the set.

Methods

First() First() First() First()

Returns an iterator to enumerate the items in the set of ResourceContext language qualifiers.

public : IIterator<Platform::String> First()
This member is not implemented in C#
This member is not implemented in VB.Net
var iIterator = resourceContextLanguagesVectorView.first();
Returns

The iterator. The current position of the iterator is index 0, or the end of the set if the set is empty.

GetAt(UInt32) GetAt(UInt32) GetAt(UInt32) GetAt(UInt32)

Returns the ResourceContext language qualifier at the specified index in the set.

public : Platform::String GetAt(unsigned int index)
This member is not implemented in C#
This member is not implemented in VB.Net
var string = resourceContextLanguagesVectorView.getAt(index);
Parameters
index
unsigned int UInt32 UInt32 UInt32

The zero-based index of the ResourceContext language qualifier in the set to return.

Returns
Platform::String string string string

The ResourceContext language qualifier at the specified index.

GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumerator that iterates through the collection.

This member is not implemented in C++
IEnumerator<T> GetEnumerator()
Function GetEnumerator As IEnumerator(Of T)
IEnumerator<T> GetEnumerator()
Returns

An enumerator that can be used to iterate through the collection.

GetMany(UInt32, String[]) GetMany(UInt32, String[]) GetMany(UInt32, String[]) GetMany(UInt32, String[])

Returns the ResourceContext language qualifiers that start at the specified index in the set.

public : unsigned int GetMany(unsigned int startIndex, Platform::String[] items)
This member is not implemented in C#
This member is not implemented in VB.Net
var uint = resourceContextLanguagesVectorView.getMany(startIndex, items);
Parameters
startIndex
unsigned int UInt32 UInt32 UInt32

The zero-based index of the start of the ResourceContext language qualifiers in the set to return.

items
Platform::String[] String[] String[] String[]

The ResourceContext language qualifiers in the set that start at startIndex.

Returns
unsigned int uint uint uint

The number of ResourceContext language qualifiers returned.

IndexOf(String, UInt32) IndexOf(String, UInt32) IndexOf(String, UInt32) IndexOf(String, UInt32)

Returns the index of a specified ResourceContext language qualifier in the set.

public : Platform::Boolean IndexOf(Platform::String value, unsigned int index)
This member is not implemented in C#
This member is not implemented in VB.Net
var bool = resourceContextLanguagesVectorView.indexOf(value, index);
Parameters
value
Platform::String String String String

The ResourceContext language qualifier to find in the set.

index
unsigned int UInt32 UInt32 UInt32

The zero-based index of the ResourceContext language qualifier, if the item is found. The method returns zero if the item is not found.

Returns
Platform::Boolean bool bool bool

A Boolean that is TRUE if the ResourceContext language qualifier is found; otherwise, FALSE.