Partilhar via


ITokenReplayCache.TryAdd(String, DateTime) Method

Definition

Try to add a securityToken.

public bool TryAdd (string securityToken, DateTime expiresOn);
abstract member TryAdd : string * DateTime -> bool
Public Function TryAdd (securityToken As String, expiresOn As DateTime) As Boolean

Parameters

securityToken
String

the security token to add.

expiresOn
DateTime

the time when security token expires.

Returns

true if the security token was successfully added.

Applies to