HeaderDictionary.Item Property
.NET Framework 4.5
Gets or sets the value associated with the specified key.
Namespace: Microsoft.AspNet.SignalR.Client
Assembly: Microsoft.AspNet.SignalR.Client (in Microsoft.AspNet.SignalR.Client.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 value associated with the specified key.
Implements
IDictionary<TKey, TValue>.Item[TKey]