SecurityTokenCache.TryReplaceEntry Method
Attempts to replace an existing entry in the cache with a new one.
Namespace: Microsoft.IdentityModel.Tokens
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)
Verwendung
Dim instance As SecurityTokenCache Dim key As Object Dim newValue As SecurityToken Dim returnValue As Boolean returnValue = instance.TryReplaceEntry(key, newValue)
Syntax
'Declaration
Public MustOverride Function TryReplaceEntry ( _
key As Object, _
newValue As SecurityToken _
) As Boolean
public abstract bool TryReplaceEntry (
Object key,
SecurityToken newValue
)
public:
virtual bool TryReplaceEntry (
Object^ key,
SecurityToken^ newValue
) abstract
public abstract boolean TryReplaceEntry (
Object key,
SecurityToken newValue
)
public abstract function TryReplaceEntry (
key : Object,
newValue : SecurityToken
) : boolean
Parameter
- key
The key of the entry to be retrieved.
- newValue
The SecurityToken which will replace the entry associated with the key.
Rückgabewert
A boolean indicating success or 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