HeaderDictionary.Item Property
Get or set the associated header value in the collection. Multiple values will be merged. Returns null if the key is not present.
Namespace: Microsoft.Owin
Assembly: Microsoft.Owin (in Microsoft.Owin.dll)
Syntax
'Declaration
Public Default Property Item ( _
key As String _
) As String
Get
Set
'Usage
Dim instance As HeaderDictionary
Dim key As String
Dim value As String
value = instance(key)
instance(key) = value
public string this[
string key
] { get; set; }
public:
virtual property String^ default[String^ key] {
String^ get (String^ key) sealed;
void set (String^ key, String^ value) sealed;
}
abstract Item : string with get, set
override Item : string with get, set
JScript supports the use of indexed properties, but not the declaration of new ones.
Parameters
- key
Type: System.String
Property Value
Type: System.String
The associated header value in the collection.
Implements
IHeaderDictionary.Item[String]
IReadableStringCollection.Item[String]