Namespace: Microsoft.IdentityModel.Tokens
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As DefaultTokenReplayCache
Dim key As String
Dim securityToken As SecurityToken
Dim expirationTime As DateTime
Dim returnValue As Boolean

returnValue = instance.TryAdd(key, securityToken, expirationTime)

Syntax

Visual Basic
Public Overrides Function TryAdd ( _
		key As String, _
		securityToken As SecurityToken, _
		expirationTime As DateTime _
) As Boolean
C#
public override bool TryAdd (
		string key,
		SecurityToken securityToken,
		DateTime expirationTime
)
C++
public:
virtual bool TryAdd (
		String^ key, 
		SecurityToken^ securityToken, 
		DateTime expirationTime
) override
J#
public boolean TryAdd (
		String key, 
		SecurityToken securityToken, 
		DateTime expirationTime
)
JScript
public override function TryAdd (
		key : String, 
		securityToken : SecurityToken, 
		expirationTime : DateTime
) : boolean

Parameters

key
securityToken
expirationTime

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also