ResourceContextLanguagesVectorView 클래스

정의

ResourceContext 언어 한정자의 컬렉션을 나타냅니다.

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)
상속
Object Platform::Object IInspectable ResourceContextLanguagesVectorView
특성
구현
IEnumerable<String> IIterable<Platform::String> IIterable<winrt::hstring> IIterable<T> IEnumerable<T> IReadOnlyList<String> IVectorView<Platform::String> IVectorView<winrt::hstring>

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

설명

컬렉션 멤버 목록

JavaScript의 경우 ResourceContextLanguagesVectorView에는 멤버 목록에 표시된 멤버가 있습니다. 또한 ResourceContextLanguagesVectorView는 length 속성, Array.prototype의 멤버 및 인덱스를 사용하여 항목에 액세스할 수 있도록 지원합니다.

C# 또는 Microsoft Visual Basic에서 컬렉션 열거

ResourceContextLanguagesVectorView는 열거 가능하므로 C#의 foreach 와 같은 언어별 구문을 사용하여 컬렉션의 항목을 열거할 수 있습니다. 컴파일러는 형식 캐스팅을 수행하므로 명시적으로 캐스팅 IEnumerable<String> 할 필요가 없습니다. 예를 들어 GetEnumerator를 호출하려는 경우 명시적으로 캐스팅해야 하는 경우 String 제약 조건을 사용하여 IEnumerable<T>로 캐스팅합니다.

속성

Size

집합의 ResourceContext 언어 한정자 수를 가져옵니다.

메서드

First()

ResourceContext 언어 한정자 집합의 항목을 열거하는 반복기를 반환합니다.

GetAt(UInt32)

집합의 지정된 인덱 스에서 ResourceContext 언어 한정자를 반환합니다.

GetMany(UInt32, String[])

집합의 지정된 인덱스에서 시작하는 ResourceContext 언어 한정자를 반환합니다.

IndexOf(String, UInt32)

집합에서 지정된 ResourceContext 언어 한정자의 인덱스 를 반환합니다.

적용 대상