Share via


IHeaderDictionary Interface

A wrapper for Headers and Headers.

Namespace:  Microsoft.Owin
Assembly:  Microsoft.Owin (in Microsoft.Owin.dll)

Syntax

'Declaration
Public Interface IHeaderDictionary _
    Inherits IReadableStringCollection, IDictionary(Of String, String()),  _
    ICollection(Of KeyValuePair(Of String, String())),  _
    IEnumerable(Of KeyValuePair(Of String, String())),  _
    IEnumerable
'Usage
Dim instance As IHeaderDictionary
public interface IHeaderDictionary : IReadableStringCollection, 
    IDictionary<string, string[]>, ICollection<KeyValuePair<string, string[]>>, 
    IEnumerable<KeyValuePair<string, string[]>>, IEnumerable
public interface class IHeaderDictionary : IReadableStringCollection, 
    IDictionary<String^, array<String^>^>, ICollection<KeyValuePair<String^, array<String^>^>>, 
    IEnumerable<KeyValuePair<String^, array<String^>^>>, 
    IEnumerable
type IHeaderDictionary =  
    interface 
        interface IReadableStringCollection 
        interface IDictionary<string, string[]>
        interface ICollection<KeyValuePair<string, string[]>>
        interface IEnumerable<KeyValuePair<string, string[]>>
        interface IEnumerable 
    end
public interface IHeaderDictionary extends IReadableStringCollection, IDictionary<String, String[]>, ICollection<KeyValuePair<String, String[]>>, IEnumerable<KeyValuePair<String, String[]>>, IEnumerable

The IHeaderDictionary type exposes the following members.

Properties

  Name Description
Public property Count (Inherited from ICollection<KeyValuePair<String, array<String[]>>.)
Public property IsReadOnly (Inherited from ICollection<KeyValuePair<String, array<String[]>>.)
Public property Item Gets or sets the header with the specified key.
Public property Keys (Inherited from IDictionary<String, array<String[]>.)
Public property Values (Inherited from IDictionary<String, array<String[]>.)

Top

Methods

  Name Description
Public method Add(T) (Inherited from ICollection<KeyValuePair<String, array<String[]>>.)
Public method Add(TKey, TValue) (Inherited from IDictionary<String, array<String[]>.)
Public method Append Adds the specified header to the dictionary.
Public method AppendCommaSeparatedValues Adds the header values to the dictionary as a comma-separated value.
Public method AppendValues Adds the header values to the dictionary unmodified.
Public method Clear (Inherited from ICollection<KeyValuePair<String, array<String[]>>.)
Public method Contains (Inherited from ICollection<KeyValuePair<String, array<String[]>>.)
Public method ContainsKey (Inherited from IDictionary<String, array<String[]>.)
Public method CopyTo (Inherited from ICollection<KeyValuePair<String, array<String[]>>.)
Public method Get Get the associated value from the collection. Multiple values will be merged. Returns null if the key is not present. (Inherited from IReadableStringCollection.)
Public method GetCommaSeparatedValues Parses out comma separated headers into individual values. Quoted values will not be coma split, and the quotes will be removed.
Public method GetEnumerator (Inherited from IEnumerable<KeyValuePair<String, array<String[]>>.)
Public method GetValues Get the associated values from the collection in their original format. Returns null if the key is not present. (Inherited from IReadableStringCollection.)
Public method Remove(TKey) (Inherited from IDictionary<String, array<String[]>.)
Public method Remove(T) (Inherited from ICollection<KeyValuePair<String, array<String[]>>.)
Public method Set Assigns a new header value for the specified key.
Public method SetCommaSeparatedValues Assigns the header values to the dictionary as a comma-separated value.
Public method SetValues Assigns the header values to the dictionary unmodified.
Public method TryGetValue (Inherited from IDictionary<String, array<String[]>.)

Top

See Also

Reference

Microsoft.Owin Namespace