ViewDataDictionary::Item Property

Gets or sets the item that is associated with the specified key.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public:
virtual property Object^ default[String^ key] {
	Object^ get (String^ key) sealed;
	void set (String^ key, Object^ value) sealed;
}

Parameters

key
Type: System::String

Property Value

Type: System::Object
The value of the selected item.

Implements

IDictionary<TKey, TValue>::Item[TKey]
Show: