ITempDataDictionary.Keep Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Keep() |
Marks all keys in the dictionary for retention. |
Keep(String) |
Marks the specified key in the dictionary for retention. |
- Source:
- ITempDataDictionary.cs
Marks all keys in the dictionary for retention.
public:
void Keep();
C#
public void Keep ();
abstract member Keep : unit -> unit
Public Sub 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 |
- Source:
- ITempDataDictionary.cs
Marks the specified key in the dictionary for retention.
public:
void Keep(System::String ^ key);
C#
public void Keep (string key);
abstract member Keep : string -> unit
Public Sub Keep (key As String)
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 |