TokenReplayCache.AddOrUpdate Method (String, SecurityToken, DateTime)

.NET Framework (current version)
 
System_CAPS_noteNote

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

When overridden in a derived class, attempts to add a new entry or update and existing entry.

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

public abstract void AddOrUpdate(
	string key,
	SecurityToken securityToken,
	DateTime expirationTime
)

Parameters

key
Type: System.String

The key to use when adding the item.

securityToken
Type: System.IdentityModel.Tokens.SecurityToken

The token to add to the cache, can be null.

expirationTime
Type: System.DateTime

The time at which the entry expires.

.NET Framework
Available since 4.5
Return to top
Show: