Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 2.77 KB

httpcontentcodingheadervaluecollection.md

File metadata and controls

35 lines (22 loc) · 2.77 KB
-api-id -api-type
T:Windows.Web.Http.Headers.HttpContentCodingHeaderValueCollection
winrt class

Windows.Web.Http.Headers.HttpContentCodingHeaderValueCollection

-description

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

-remarks

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.

Collection member lists

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.

Enumerating the collection in C# or Microsoft Visual Basic

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.

-examples

-see-also

ContentEncoding, HttpContentCodingHeaderValue, HttpContentHeaderCollection, IIterable(HttpContentCodingHeaderValue), IStringable, IVector(HttpContentCodingHeaderValue)