Compartir a través de


IHeaderDictionary Interface

 

Represents a wrapper for owin.RequestHeaders and owin.ResponseHeaders.

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

Syntax

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
    Inherits IReadableStringCollection, IDictionary(Of String, String()),
    ICollection(Of KeyValuePair(Of String, String())), IEnumerable(Of KeyValuePair(Of String, String())),
    IEnumerable

Properties

Name Description
System_CAPS_pubproperty Count

(Inherited from ICollection<T>.)

System_CAPS_pubproperty IsReadOnly

(Inherited from ICollection<T>.)

System_CAPS_pubproperty Item[String]

Get or sets the associated value from the collection as a single string.

System_CAPS_pubproperty Keys

(Inherited from IDictionary<TKey, TValue>.)

System_CAPS_pubproperty Values

(Inherited from IDictionary<TKey, TValue>.)

Methods

Name Description
System_CAPS_pubmethod Add(T)

(Inherited from ICollection<T>.)

System_CAPS_pubmethod Add(TKey, TValue)

(Inherited from IDictionary<TKey, TValue>.)

System_CAPS_pubmethod Append(String, String)

Add a new value. Appends to the header if already present

System_CAPS_pubmethod AppendCommaSeparatedValues(String, String[])

Quotes any values containing comas, and then coma joins all of the values with any existing values.

System_CAPS_pubmethod AppendValues(String, String[])

Add new values. Each item remains a separate array entry.

System_CAPS_pubmethod Clear()

(Inherited from ICollection<T>.)

System_CAPS_pubmethod Contains(T)

(Inherited from ICollection<T>.)

System_CAPS_pubmethod ContainsKey(TKey)

(Inherited from IDictionary<TKey, TValue>.)

System_CAPS_pubmethod CopyTo(T[], Int32)

(Inherited from ICollection<T>.)

System_CAPS_pubmethod Get(String)

Get the associated value from the collection. Multiple values will be merged. Returns null if the key is not present.(Inherited from IReadableStringCollection.)

System_CAPS_pubmethod GetCommaSeparatedValues(String)

Get the associated values from the collection separated into individual values. Quoted values will not be split, and the quotes will be removed.

System_CAPS_pubmethod GetEnumerator()

(Inherited from IEnumerable<T>.)

System_CAPS_pubmethod GetValues(String)

Get the associated values from the collection in their original format. Returns null if the key is not present.(Inherited from IReadableStringCollection.)

System_CAPS_pubmethod Remove(TKey)

(Inherited from IDictionary<TKey, TValue>.)

System_CAPS_pubmethod Remove(T)

(Inherited from ICollection<T>.)

System_CAPS_pubmethod Set(String, String)

Sets a specific header value.

System_CAPS_pubmethod SetCommaSeparatedValues(String, String[])

Quotes any values containing comas, and then coma joins all of the values.

System_CAPS_pubmethod SetValues(String, String[])

Sets the specified header values without modification.

System_CAPS_pubmethod TryGetValue(TKey, TValue)

(Inherited from IDictionary<TKey, TValue>.)

See Also

Microsoft.Owin Namespace

Return to top