Freigeben über


TempDataDictionary.Item Property

Gets or sets the object that has the specified key.

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

Syntax

'Declaration
Public Default Property Item ( _
    key As String _
) As Object
    Get
    Set
public Object this[
    string key
] { get; set; }
public:
virtual property Object^ default[String^ key] {
    Object^ get (String^ key) sealed;
    void set (String^ key, Object^ value) sealed;
}

Parameters

Property Value

Type: System.Object
The object that has the specified key.

Implements

IDictionary<TKey, TValue>.Item[TKey]

See Also

Reference

TempDataDictionary Class

System.Web.Mvc Namespace