DynamicDictionary Class

.NET Framework 4.5

Contains an object of the dictionary to store the key-value pairs, and overrides the TrySetMember and TryGetMember methods to support the new syntax.

System::Object
  System.Dynamic::DynamicObject
    Microsoft.AspNet.SignalR.Hubs::DynamicDictionary

Namespace:  Microsoft.AspNet.SignalR.Hubs
Assembly:  Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)

public ref class DynamicDictionary : public DynamicObject, 
	IDictionary<String^, Object^>, ICollection<KeyValuePair<String^, Object^>>, 
	IEnumerable<KeyValuePair<String^, Object^>>, IEnumerable

The DynamicDictionary type exposes the following members.

  NameDescription
Public methodDynamicDictionaryInitializes a new instance of the DynamicDictionary class.
Top

  NameDescription
Public propertyCountGets the number of items in the dictionary.
Public propertyIsReadOnlyGets whether the dynamic dictionary is read only.
Public propertyItemGets or sets the item with the specific key in the dictionary.
Public propertyKeysGets a collection of keys contained in the dictionary.
Public propertyValuesGets a collection of values contained in the dictionary.
Top

  NameDescription
Public methodAdd(KeyValuePair<String, Object>)Adds a specified key/value pair object to the dictionary.
Public methodAdd(String, Object)Adds the specified key and value to the dictionary.
Public methodClearRemoves all keys and values from the dictionary.
Public methodContainsDetermines whether the Dictionary contains a specific key/value pair item.
Public methodContainsKeyDetermines whether the Dictionary contains the specified key.
Public methodCopyToCopies the key/value pair elements to an existing one-dimensional Array, starting at the specified array index.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetDynamicMemberNames (Inherited from DynamicObject.)
Public methodGetEnumeratorReturns an enumerator that iterates through the dictionary.
Public methodGetHashCode (Inherited from Object.)
Public methodGetMetaObject (Inherited from DynamicObject.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemove(KeyValuePair<String, Object>)Removes a specific key/ value pair item from the dictionary.
Public methodRemove(String)Removes a specific key from the dictionary.
Public methodToString (Inherited from Object.)
Public methodTryBinaryOperation (Inherited from DynamicObject.)
Public methodTryConvert (Inherited from DynamicObject.)
Public methodTryCreateInstance (Inherited from DynamicObject.)
Public methodTryDeleteIndex (Inherited from DynamicObject.)
Public methodTryDeleteMember (Inherited from DynamicObject.)
Public methodTryGetIndex (Inherited from DynamicObject.)
Public methodTryGetMemberProvides the implementation for operations that get member values. (Overrides DynamicObject::TryGetMember(GetMemberBinder, Object%).)
Public methodTryGetValueGets the value associated with the specified key.
Public methodTryInvoke (Inherited from DynamicObject.)
Public methodTryInvokeMember (Inherited from DynamicObject.)
Public methodTrySetIndex (Inherited from DynamicObject.)
Public methodTrySetMemberProvides the implementation for operations that set member values. (Overrides DynamicObject::TrySetMember(SetMemberBinder, Object).)
Public methodTryUnaryOperation (Inherited from DynamicObject.)
Public methodStatic memberUnwrapUnwraps a specified value associated with the dictionary.
Public methodStatic memberWrapWraps a specified value associated with the dictionary.
Top

  NameDescription
Explicit interface implemetationPrivate methodIEnumerable::GetEnumeratorReturns an enumerator that iterates through a collection.
Top

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