Redigera

Dela via


TokenReplayCache.AddOrUpdate(String, SecurityToken, DateTime) Method

Definition

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

public:
 abstract void AddOrUpdate(System::String ^ key, System::IdentityModel::Tokens::SecurityToken ^ securityToken, DateTime expirationTime);
public abstract void AddOrUpdate (string key, System.IdentityModel.Tokens.SecurityToken securityToken, DateTime expirationTime);
abstract member AddOrUpdate : string * System.IdentityModel.Tokens.SecurityToken * DateTime -> unit
Public MustOverride Sub AddOrUpdate (key As String, securityToken As SecurityToken, expirationTime As DateTime)

Parameters

key
String

The key to use when adding the item.

securityToken
SecurityToken

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

expirationTime
DateTime

The time at which the entry expires.

Applies to