HttpLanguageHeaderValueCollection Class

Definition

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

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
Inheritance
Object Platform::Object IInspectable HttpLanguageHeaderValueCollection
Attributes
Implements

Windows requirements

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

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

Gets the number of Language objects in the collection.

Methods

Append(Language)

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

Clear()

Removes all objects from the collection.

First()

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

GetAt(UInt32)

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

GetMany(UInt32, Language[])

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

GetView()

Returns an immutable view of the HttpLanguageHeaderValueCollection.

IndexOf(Language, UInt32)

Retrieves the index of a Language in the collection.

InsertAt(UInt32, Language)

Inserts a Language into the collection at the specified index.

ParseAdd(String)

Parses and adds an entry to the HttpLanguageHeaderValueCollection.

RemoveAt(UInt32)

Removes the entry at the specified index from the HttpLanguageHeaderValueCollection.

RemoveAtEnd()

Removes the last Language item from the collection.

ReplaceAll(Language[])

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

SetAt(UInt32, Language)

Sets the Language at the specified index in the collection.

ToString()

Returns a string that represents the current HttpLanguageHeaderValueCollection object.

TryParseAdd(String)

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

Applies to

See also