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)

'Declaration
Public Function Peek ( _
	key As String _
) As Object
'Usage
Dim instance As TempDataDictionary 
Dim key As String 
Dim returnValue As Object 

returnValue = instance.Peek(key)

Parameters

key
Type: System.String

The key of the element to return.

Return Value

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