TokenReplayCache.Contains Method (String)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

When overridden in a derived class, returns a value that indicates whether a matching entry exists in the cache.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public abstract bool Contains(
	string key


Type: System.String

The key for which to search.

Return Value

Type: System.Boolean

true if a matching entry is is found in the cache; otherwise, false.

.NET Framework
Available since 4.5
Return to top