SessionSecurityTokenCache.AddOrUpdate(SessionSecurityTokenCacheKey, SessionSecurityToken, DateTime) 方法

定义

当在派生类中重写时,尝试将词条添加到缓存或更新现有词条。When overridden in a derived class, attempts to add an entry to the cache or update an existing one.

public:
 abstract void AddOrUpdate(System::IdentityModel::Tokens::SessionSecurityTokenCacheKey ^ key, System::IdentityModel::Tokens::SessionSecurityToken ^ value, DateTime expiryTime);
public abstract void AddOrUpdate (System.IdentityModel.Tokens.SessionSecurityTokenCacheKey key, System.IdentityModel.Tokens.SessionSecurityToken value, DateTime expiryTime);
abstract member AddOrUpdate : System.IdentityModel.Tokens.SessionSecurityTokenCacheKey * System.IdentityModel.Tokens.SessionSecurityToken * DateTime -> unit
Public MustOverride Sub AddOrUpdate (key As SessionSecurityTokenCacheKey, value As SessionSecurityToken, expiryTime As DateTime)

参数

key
SessionSecurityTokenCacheKey

要添加或更新的项的键。The key of the entry to be added or updated.

value
SessionSecurityToken

与入口关联的标记。The token associated with the entry.

expiryTime
DateTime

输入的过期时间。The expiration time of the entry.

适用于