Jaa


ResourceContextLanguagesVectorView Class

Definition

Represents a collection of ResourceContext language qualifiers.

public ref class ResourceContextLanguagesVectorView sealed : IIterable<Platform::String ^>, IVectorView<Platform::String ^>
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ResourceContextLanguagesVectorView final : IIterable<winrt::hstring>, IVectorView<winrt::hstring>
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ResourceContextLanguagesVectorView : IEnumerable<string>, IReadOnlyList<string>
Public NotInheritable Class ResourceContextLanguagesVectorView
Implements IEnumerable(Of String), IReadOnlyList(Of String)
Inheritance
Object Platform::Object IInspectable ResourceContextLanguagesVectorView
Attributes
Implements
IEnumerable<String> IIterable<Platform::String> IIterable<winrt::hstring> IIterable<T> IEnumerable<T> IReadOnlyList<String> IVectorView<Platform::String> IVectorView<winrt::hstring>

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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.

Properties

Size

Gets the number of ResourceContext language qualifiers in the set.

Methods

First()

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

GetAt(UInt32)

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

GetMany(UInt32, String[])

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

IndexOf(String, UInt32)

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

Applies to