HttpTransferCodingHeaderValueCollection HttpTransferCodingHeaderValueCollection HttpTransferCodingHeaderValueCollection HttpTransferCodingHeaderValueCollection Class

Represents the value of the Transfer-Encoding HTTP header on an HTTP request.

Syntax

Declaration

public sealed class HttpTransferCodingHeaderValueCollectionpublic sealed class HttpTransferCodingHeaderValueCollectionPublic NotInheritable Class HttpTransferCodingHeaderValueCollectionpublic sealed class HttpTransferCodingHeaderValueCollection

Remarks

The HttpTransferCodingHeaderValueCollection represents the value of the Transfer-Encoding HTTP header on an HTTP request.

The HttpTransferCodingHeaderValueCollection is a collection of HttpTransferCodingHeaderValue objects used for transfer coding information in the HTTP Transfer-Encoding header.

The TransferEncoding property on the HttpRequestHeaderCollection returns an HttpTransferCodingHeaderValueCollection object.

Properties summary

Gets the number of HttpTransferCodingHeaderValue objects in the collection.

Methods summary

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

Removes all objects from the collection.

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

Returns the HttpTransferCodingHeaderValue at the specified index in the collection.

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

Returns an immutable view of the HttpTransferCodingHeaderValueCollection.

Retrieves the index of an HttpTransferCodingHeaderValue in the collection.

Inserts an HttpTransferCodingHeaderValue into the collection at the specified index.

Parses and adds an entry to the HttpTransferCodingHeaderValueCollection.

Removes the entry at the specified index from the HttpTransferCodingHeaderValueCollection.

Removes the last HttpTransferCodingHeaderValue item from the collection.

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

Sets the HttpTransferCodingHeaderValue at the specified index in the collection.

Returns a string that represents the current HttpTransferCodingHeaderValueCollection object.

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

Properties

Methods

  • Append(HttpTransferCodingHeaderValue)
    Append(HttpTransferCodingHeaderValue)
    Append(HttpTransferCodingHeaderValue)
    Append(HttpTransferCodingHeaderValue)

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

    public void Append(HttpTransferCodingHeaderValue value)public void Append(HttpTransferCodingHeaderValue value)Public Function Append(value As HttpTransferCodingHeaderValue) As voidpublic void Append(HttpTransferCodingHeaderValue value)

    Parameters

  • Clear()
    Clear()
    Clear()
    Clear()

    Removes all objects from the collection.

    public void Clear()public void Clear()Public Function Clear() As voidpublic void Clear()
  • First()
    First()
    First()
    First()

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

    public IIterator<HttpTransferCodingHeaderValue> First()public IIterator<HttpTransferCodingHeaderValue> First()Public Function First() As IIterator( Of HttpTransferCodingHeaderValue )public IIterator<HttpTransferCodingHeaderValue> First()

    Returns

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

    Returns the HttpTransferCodingHeaderValue at the specified index in the collection.

    public HttpTransferCodingHeaderValue GetAt(UInt32 index)public HttpTransferCodingHeaderValue GetAt(UInt32 index)Public Function GetAt(index As UInt32) As HttpTransferCodingHeaderValuepublic HttpTransferCodingHeaderValue GetAt(UInt32 index)

    Parameters

    • index
      System.UInt32
      System.UInt32
      System.UInt32
      System.UInt32

      The zero-based index of a specified item in the collection.

    Returns

  • GetMany(UInt32, HttpTransferCodingHeaderValue[])
    GetMany(UInt32, HttpTransferCodingHeaderValue[])
    GetMany(UInt32, HttpTransferCodingHeaderValue[])
    GetMany(UInt32, HttpTransferCodingHeaderValue[])

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

    public uint GetMany(UInt32 startIndex, HttpTransferCodingHeaderValue[] items)public uint GetMany(UInt32 startIndex, HttpTransferCodingHeaderValue[] items)Public Function GetMany(startIndex As UInt32, items As HttpTransferCodingHeaderValue[]) As uintpublic uint GetMany(UInt32 startIndex, HttpTransferCodingHeaderValue[] items)

    Parameters

    Returns

    • uint
      uint
      uint
      uint

      The number of items retrieved.

  • GetView()
    GetView()
    GetView()
    GetView()

    Returns an immutable view of the HttpTransferCodingHeaderValueCollection.

    public IVectorView<HttpTransferCodingHeaderValue> GetView()public IVectorView<HttpTransferCodingHeaderValue> GetView()Public Function GetView() As IVectorView( Of HttpTransferCodingHeaderValue )public IVectorView<HttpTransferCodingHeaderValue> GetView()

    Returns

  • IndexOf(HttpTransferCodingHeaderValue, UInt32)
    IndexOf(HttpTransferCodingHeaderValue, UInt32)
    IndexOf(HttpTransferCodingHeaderValue, UInt32)
    IndexOf(HttpTransferCodingHeaderValue, UInt32)

    Retrieves the index of an HttpTransferCodingHeaderValue in the collection.

    public bool IndexOf(HttpTransferCodingHeaderValue value, UInt32 index)public bool IndexOf(HttpTransferCodingHeaderValue value, UInt32 index)Public Function IndexOf(value As HttpTransferCodingHeaderValue, index As UInt32) As boolpublic bool IndexOf(HttpTransferCodingHeaderValue value, UInt32 index)

    Parameters

    Returns

  • InsertAt(UInt32, HttpTransferCodingHeaderValue)
    InsertAt(UInt32, HttpTransferCodingHeaderValue)
    InsertAt(UInt32, HttpTransferCodingHeaderValue)
    InsertAt(UInt32, HttpTransferCodingHeaderValue)

    Inserts an HttpTransferCodingHeaderValue into the collection at the specified index.

    public void InsertAt(UInt32 index, HttpTransferCodingHeaderValue value)public void InsertAt(UInt32 index, HttpTransferCodingHeaderValue value)Public Function InsertAt(index As UInt32, value As HttpTransferCodingHeaderValue) As voidpublic void InsertAt(UInt32 index, HttpTransferCodingHeaderValue value)

    Parameters

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

    Parses and adds an entry to the HttpTransferCodingHeaderValueCollection.

    public void ParseAdd(String input)public void ParseAdd(String input)Public Function ParseAdd(input As String) As voidpublic void ParseAdd(String input)

    Parameters

    • input
      System.String
      System.String
      System.String
      System.String

      The entry to add.

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

    Removes the entry at the specified index from the HttpTransferCodingHeaderValueCollection.

    public void RemoveAt(UInt32 index)public void RemoveAt(UInt32 index)Public Function RemoveAt(index As UInt32) As voidpublic void RemoveAt(UInt32 index)

    Parameters

    • index
      System.UInt32
      System.UInt32
      System.UInt32
      System.UInt32

      The index of the entry to remove.

  • RemoveAtEnd()
    RemoveAtEnd()
    RemoveAtEnd()
    RemoveAtEnd()

    Removes the last HttpTransferCodingHeaderValue item from the collection.

    public void RemoveAtEnd()public void RemoveAtEnd()Public Function RemoveAtEnd() As voidpublic void RemoveAtEnd()
  • ReplaceAll(HttpTransferCodingHeaderValue[])
    ReplaceAll(HttpTransferCodingHeaderValue[])
    ReplaceAll(HttpTransferCodingHeaderValue[])
    ReplaceAll(HttpTransferCodingHeaderValue[])

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

    public void ReplaceAll(HttpTransferCodingHeaderValue[] items)public void ReplaceAll(HttpTransferCodingHeaderValue[] items)Public Function ReplaceAll(items As HttpTransferCodingHeaderValue[]) As voidpublic void ReplaceAll(HttpTransferCodingHeaderValue[] items)

    Parameters

    • items
      Windows.Web.Http.Headers.HttpTransferCodingHeaderValue[]
      Windows.Web.Http.Headers.HttpTransferCodingHeaderValue[]
      Windows.Web.Http.Headers.HttpTransferCodingHeaderValue[]
      Windows.Web.Http.Headers.HttpTransferCodingHeaderValue[]

      The HttpTransferCodingHeaderValue items to add to the collection.

  • SetAt(UInt32, HttpTransferCodingHeaderValue)
    SetAt(UInt32, HttpTransferCodingHeaderValue)
    SetAt(UInt32, HttpTransferCodingHeaderValue)
    SetAt(UInt32, HttpTransferCodingHeaderValue)

    Sets the HttpTransferCodingHeaderValue at the specified index in the collection.

    public void SetAt(UInt32 index, HttpTransferCodingHeaderValue value)public void SetAt(UInt32 index, HttpTransferCodingHeaderValue value)Public Function SetAt(index As UInt32, value As HttpTransferCodingHeaderValue) As voidpublic void SetAt(UInt32 index, HttpTransferCodingHeaderValue value)

    Parameters

  • ToString()
    ToString()
    ToString()
    ToString()

    Returns a string that represents the current HttpTransferCodingHeaderValueCollection object.

    public string ToString()public string ToString()Public Function ToString() As stringpublic string ToString()

    Returns

    • string
      string
      string
      string

      A string that represents the current object.

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

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

    public bool TryParseAdd(String input)public bool TryParseAdd(String input)Public Function TryParseAdd(input As String) As boolpublic bool TryParseAdd(String input)

    Parameters

    • input
      System.String
      System.String
      System.String
      System.String

      The item to parse and add.

    Returns

    • bool
      bool
      bool
      bool

      true if the item successfully parsed and was added; otherwise false.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ThreadingAttribute

Details

Assembly

Windows.Web.Http.Headers.dll