ITempDataDictionary.Keep Method

Definition

Overloads

Keep()

Marks all keys in the dictionary for retention.

Keep(String)

Marks the specified key in the dictionary for retention.

Keep()

Source:
ITempDataDictionary.cs

Marks all keys in the dictionary for retention.

C#
public void Keep ();

Applies to

ASP.NET Core 9.0 and other versions
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

Keep(String)

Source:
ITempDataDictionary.cs

Marks the specified key in the dictionary for retention.

C#
public void Keep (string key);

Parameters

key
String

The key to retain in the dictionary.

Applies to

ASP.NET Core 9.0 and other versions
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