-api-id | -api-type |
---|---|
T:Windows.Web.Http.Headers.HttpContentCodingHeaderValueCollection |
winrt class |
Represents the value of the Content-Encoding HTTP header on HTTP content in a request or a response.
The HttpContentCodingHeaderValueCollection class represents the value of the Content-Encoding HTTP header on HTTP content sent in an HTTP request or received in an HTTP response.
The HttpContentCodingHeaderValueCollection provides a collection container for instances of the HttpConnectionOptionHeaderValue class objects used for content encoding information in the Content-Encoding HTTP header.
The ContentEncoding property on the HttpContentHeaderCollection returns an HttpContentCodingHeaderValueCollection.
For JavaScript, HttpContentCodingHeaderValueCollection has the members shown in the member lists. In addition, HttpContentCodingHeaderValueCollection supports members of Array.prototype and using an index to access items.
You can iterate through an HttpContentCodingHeaderValueCollection object in C# or Microsoft Visual Basic. In many cases, such as using foreach syntax, the compiler does this casting for you and you won't need to cast to IEnumerable<HttpContentCodingHeaderValue>
explicitly. If you do need to cast explicitly, for example if you want to call GetEnumerator, cast the collection object to IEnumerable<T> with an HttpContentCodingHeaderValue constraint.
ContentEncoding, HttpContentCodingHeaderValue, HttpContentHeaderCollection, IIterable(HttpContentCodingHeaderValue), IStringable, IVector(HttpContentCodingHeaderValue)