ITempDataDictionary.Peek(String) Method

Definition

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

C#
public object Peek (string key);
C#
public object? Peek (string key);

Parameters

key
String

The key of the element to return.

Returns

An object that contains the element that is associated with the specified key.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0