HttpContentCodingHeaderValueCollection Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the value of the Content-Encoding HTTP header on HTTP content in a request or a response.
public ref class HttpContentCodingHeaderValueCollection sealed : IIterable<HttpContentCodingHeaderValue ^>, IVector<HttpContentCodingHeaderValue ^>, 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 HttpContentCodingHeaderValueCollection final : IIterable<HttpContentCodingHeaderValue>, IVector<HttpContentCodingHeaderValue>, IStringable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class HttpContentCodingHeaderValueCollection final : IIterable<HttpContentCodingHeaderValue>, IVector<HttpContentCodingHeaderValue>, 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 HttpContentCodingHeaderValueCollection : IEnumerable<HttpContentCodingHeaderValue>, IList<HttpContentCodingHeaderValue>, IStringable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class HttpContentCodingHeaderValueCollection : IEnumerable<HttpContentCodingHeaderValue>, IList<HttpContentCodingHeaderValue>, IStringable
Public NotInheritable Class HttpContentCodingHeaderValueCollection
Implements IEnumerable(Of HttpContentCodingHeaderValue), IList(Of HttpContentCodingHeaderValue), IStringable
- Inheritance
- 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 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.
Properties
Size |
Gets the number of HttpContentCodingHeaderValue objects in the collection. |