TempDataDictionary.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:
- TempDataDictionary.cs
- Source:
- TempDataDictionary.cs
- Source:
- TempDataDictionary.cs
Marks all keys in the dictionary for retention.
public:
virtual void Keep();
C#
public void Keep ();
abstract member Keep : unit -> unit
override this.Keep : unit -> unit
Public Sub Keep ()
Implements
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:
- TempDataDictionary.cs
- Source:
- TempDataDictionary.cs
- Source:
- TempDataDictionary.cs
Marks the specified key in the dictionary for retention.
public:
virtual void Keep(System::String ^ key);
C#
public void Keep (string key);
abstract member Keep : string -> unit
override this.Keep : string -> unit
Public Sub Keep (key As String)
Parameters
- key
- String
The key to retain in the dictionary.
Implements
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 |