Share via


HeaderDictionary Class

.NET Framework 4.5

Represents a mapping from a set of keys to a set of values for SignalR client.

Inheritance Hierarchy

System.Object
  Microsoft.AspNet.SignalR.Client.HeaderDictionary

Namespace:  Microsoft.AspNet.SignalR.Client
Assembly:  Microsoft.AspNet.SignalR.Client (in Microsoft.AspNet.SignalR.Client.dll)

Syntax

'Declaration
Public Class HeaderDictionary _
    Implements IDictionary(Of String, String),  _
    ICollection(Of KeyValuePair(Of String, String)), IEnumerable(Of KeyValuePair(Of String, String)),  _
    IEnumerable
'Usage
Dim instance As HeaderDictionary
public class HeaderDictionary : IDictionary<string, string>, 
    ICollection<KeyValuePair<string, string>>, IEnumerable<KeyValuePair<string, string>>, 
    IEnumerable
public ref class HeaderDictionary : IDictionary<String^, String^>, 
    ICollection<KeyValuePair<String^, String^>>, IEnumerable<KeyValuePair<String^, String^>>, 
    IEnumerable
type HeaderDictionary =  
    class 
        interface IDictionary<string, string>
        interface ICollection<KeyValuePair<string, string>>
        interface IEnumerable<KeyValuePair<string, string>>
        interface IEnumerable 
    end
public class HeaderDictionary implements IDictionary<String, String>, ICollection<KeyValuePair<String, String>>, IEnumerable<KeyValuePair<String, String>>, IEnumerable

The HeaderDictionary type exposes the following members.

Constructors

  Name Description
Public method HeaderDictionary Initializes a new instance of the HeaderDictionary class.

Top

Properties

  Name Description
Public property Count Gets the number of key/value pairs contained in the dictionary.
Public property IsReadOnly Gets whether the dictionary is read only.
Public property Item Gets or sets the value associated with the specified key.
Public property Keys Gets the collection of keys in the dictionary.
Public property Values Gets the collection of values in the dictionary.

Top

Methods

  Name Description
Public method Add(KeyValuePair<String, String>) Adds a specific item to the dictionary.
Public method Add(String, String) Adds a specific key/value pair to the dictionary.
Public method Clear Clears the content of the dictionary.
Public method Contains Specifies whether an item is contained in the dictionary.
Public method ContainsKey Specifies whether a specified key is contained in the dictionary.
Public method CopyTo Copies the key/value pair elements to an existing one-dimensional Array, starting at the specified array index.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Returns an enumerator that iterates through the dictionary.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove(KeyValuePair<String, String>) Removes a specific key/ value pair item from the dictionary.
Public method Remove(String) Removes a specific key from the dictionary.
Public method ToString (Inherited from Object.)
Public method TryGetValue Gets the value associated with the specified key.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Returns an enumerator that iterates through a collection.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.AspNet.SignalR.Client Namespace