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 語言限定詞的索引。

適用於