SecurityTokenCache.TryAddEntry Method
Attempts to add an entry to the cache.
Namespace: Microsoft.IdentityModel.Tokens
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)
Verwendung
Dim instance As SecurityTokenCache Dim key As Object Dim value As SecurityToken Dim returnValue As Boolean returnValue = instance.TryAddEntry(key, value)
Syntax
'Declaration
Public MustOverride Function TryAddEntry ( _
key As Object, _
value As SecurityToken _
) As Boolean
public abstract bool TryAddEntry (
Object key,
SecurityToken value
)
public:
virtual bool TryAddEntry (
Object^ key,
SecurityToken^ value
) abstract
public abstract boolean TryAddEntry (
Object key,
SecurityToken value
)
public abstract function TryAddEntry (
key : Object,
value : SecurityToken
) : boolean
Parameter
- key
The key of the entry to be added.
- value
The associated SecurityToken to be added.
Rückgabewert
True on success. False on failure.
Ausnahmen
Ausnahmetyp | Bedingung |
---|
Threadsicherheit
Beliebige öffentliche, statische (Freigegebene in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.
Plattformen
Entwicklungsplattformen
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2008, Windows Vista, Not tested on Windows XP
Siehe auch
Referenz
SecurityTokenCache Class
SecurityTokenCache Members
Microsoft.IdentityModel.Tokens Namespace