ObjectCache.Contains(String, String) Method
Definition
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.
When overridden in a derived class, checks whether the cache entry already exists in the cache.
public abstract bool Contains (string key, string regionName = default);
abstract member Contains : string * string -> bool
Public MustOverride Function Contains (key As String, Optional regionName As String = Nothing) As Boolean
Parameters
- key
- String
A unique identifier for the cache entry.
- regionName
- String
Optional. A named region in the cache where the cache can be found, if regions are implemented. The default value for the optional parameter is null
.
Returns
true
if the cache contains a cache entry with the same key value as key
; otherwise, false
.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om