ITokenReplayCache.TryAdd(String, DateTime) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.