Delen via


TempDataDictionary.Peek Method

Returns an object that contains the element that is associated with the specified key, without marking the key for deletion.

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

Syntax

'Declaration
Public Function Peek ( _
    key As String _
) As Object
public Object Peek(
    string key
)
public:
Object^ Peek(
    String^ key
)

Parameters

Return Value

Type: System.Object
An object that contains the element that is associated with the specified key.

See Also

Reference

TempDataDictionary Class

System.Web.Mvc Namespace