HttpLanguageHeaderValueCollection HttpLanguageHeaderValueCollection HttpLanguageHeaderValueCollection HttpLanguageHeaderValueCollection HttpLanguageHeaderValueCollection Class

Definition

Represents the value of the Content-Language HTTP header on HTTP content in a request or a response.

public : sealed class HttpLanguageHeaderValueCollection : IStringable
struct winrt::Windows::Web::Http::Headers::HttpLanguageHeaderValueCollection : IStringable
public sealed class HttpLanguageHeaderValueCollection : IStringable
Public NotInheritable Class HttpLanguageHeaderValueCollection Implements IStringable
// 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

The HttpLanguageHeaderValueCollection class represents the value of the Content-Language HTTP header on HTTP content sent in an HTTP request or received in an response.

The ContentLanguage property on the HttpContentHeaderCollection returns an HttpLanguageHeaderValueCollection object.

Properties

Size Size Size Size Size

Gets the number of Language objects in the collection.

Methods

Append(Language) Append(Language) Append(Language) Append(Language) Append(Language)

Adds a new Language item to the end of the collection.

Clear() Clear() Clear() Clear() Clear()

Removes all objects from the collection.

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

Retrieves an iterator to the first Language item in the collection.

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

Returns the Language item at the specified index in the collection.

GetMany(UInt32, Language[]) GetMany(UInt32, Language[]) GetMany(UInt32, Language[]) GetMany(UInt32, Language[]) GetMany(UInt32, Language[])

Retrieves the Language items that start at the specified index in the collection.

GetView() GetView() GetView() GetView() GetView()

Returns an immutable view of the HttpLanguageHeaderValueCollection.

IndexOf(Language, UInt32) IndexOf(Language, UInt32) IndexOf(Language, UInt32) IndexOf(Language, UInt32) IndexOf(Language, UInt32)

Retrieves the index of a Language in the collection.

InsertAt(UInt32, Language) InsertAt(UInt32, Language) InsertAt(UInt32, Language) InsertAt(UInt32, Language) InsertAt(UInt32, Language)

Inserts a Language into the collection at the specified index.

ParseAdd(String) ParseAdd(String) ParseAdd(String) ParseAdd(String) ParseAdd(String)

Parses and adds an entry to the HttpLanguageHeaderValueCollection.

RemoveAt(UInt32) RemoveAt(UInt32) RemoveAt(UInt32) RemoveAt(UInt32) RemoveAt(UInt32)

Removes the entry at the specified index from the HttpLanguageHeaderValueCollection.

RemoveAtEnd() RemoveAtEnd() RemoveAtEnd() RemoveAtEnd() RemoveAtEnd()

Removes the last Language item from the collection.

ReplaceAll(Language[]) ReplaceAll(Language[]) ReplaceAll(Language[]) ReplaceAll(Language[]) ReplaceAll(Language[])

Replaces all the Language items in the collection with the specified Language items.

SetAt(UInt32, Language) SetAt(UInt32, Language) SetAt(UInt32, Language) SetAt(UInt32, Language) SetAt(UInt32, Language)

Sets the Language at the specified index in the collection.

ToString() ToString() ToString() ToString() ToString()

Returns a string that represents the current HttpLanguageHeaderValueCollection object.

TryParseAdd(String) TryParseAdd(String) TryParseAdd(String) TryParseAdd(String) TryParseAdd(String)

Tries to parse and add the specified item to the HttpLanguageHeaderValueCollection.

See also