HttpLanguageHeaderValueCollection 類別

定義

表示要求或回應中 HTTP 內容上 Content-Language HTTP 標頭的值。

public ref class HttpLanguageHeaderValueCollection sealed : IIterable<Language ^>, IVector<Language ^>, IStringable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class HttpLanguageHeaderValueCollection final : IIterable<Language>, IVector<Language>, IStringable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class HttpLanguageHeaderValueCollection final : IIterable<Language>, IVector<Language>, IStringable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class HttpLanguageHeaderValueCollection : IEnumerable<Language>, IList<Language>, IStringable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class HttpLanguageHeaderValueCollection : IEnumerable<Language>, IList<Language>, IStringable
Public NotInheritable Class HttpLanguageHeaderValueCollection
Implements IEnumerable(Of Language), IList(Of Language), IStringable
繼承
Object Platform::Object IInspectable HttpLanguageHeaderValueCollection
屬性
實作

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

HttpLanguageHeaderValueCollection 類別代表 HTTP 要求或回應中所接收之 HTTP 內容上 Content-Language HTTP 標頭的值。

HttpContentHeaderCollection上的ContentLanguage屬性會傳回 HttpLanguageHeaderValueCollection 物件。

屬性

Size

取得集合中的 Language 物件數目。

方法

Append(Language)

將新的 Language 專案加入至集合結尾。

Clear()

從集合中移除所有物件。

First()

擷取反覆運算器至集合中的第一個 Language 專案。

GetAt(UInt32)

傳回集合中指定索引處的 Language 專案。

GetMany(UInt32, Language[])

擷取從集合中指定索引處開始的語言專案。

GetView()

會傳回 HttpLanguageHeaderValueCollection的不可變檢視。

IndexOf(Language, UInt32)

擷取集合中 Language 的索引。

InsertAt(UInt32, Language)

Language 插入集合中指定的索引處。

ParseAdd(String)

剖析並將專案新增至 HttpLanguageHeaderValueCollection

RemoveAt(UInt32)

HttpLanguageHeaderValueCollection移除位於指定索引處的專案。

RemoveAtEnd()

從集合中移除最後一個 Language 專案。

ReplaceAll(Language[])

以指定的 Language 專案取代集合中的所有 Language 專案。

SetAt(UInt32, Language)

設定集合中指定索引處的 Language

ToString()

會傳回代表目前 HttpLanguageHeaderValueCollection 物件的字串。

TryParseAdd(String)

嘗試剖析並將指定的專案新增至 HttpLanguageHeaderValueCollection

適用於

另請參閱