ITempDataDictionary.Peek(String) 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.
Returns an object that contains the element that is associated with the specified key, without marking the key for deletion.
public:
System::Object ^ Peek(System::String ^ key);
C#
public object Peek (string key);
C#
public object? Peek (string key);
abstract member Peek : string -> obj
Public Function Peek (key As String) As Object
- key
- String
The key of the element to return.
An object that contains the element that is associated with the specified key.
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 |