Freigeben über


SecurityTokenCache.TryRemoveEntry Method

Attempts to remove an entry from the cache.

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

Verwendung

    Dim instance As SecurityTokenCache
Dim key As Object
Dim returnValue As Boolean

returnValue = instance.TryRemoveEntry(key)

Syntax

'Declaration
Public MustOverride Function TryRemoveEntry ( _
    key As Object _
) As Boolean
public abstract bool TryRemoveEntry (
    Object key
)
public:
virtual bool TryRemoveEntry (
    Object^ key
) abstract
public abstract boolean TryRemoveEntry (
    Object key
)
public abstract function TryRemoveEntry (
    key : Object
) : boolean

Parameter

  • key
    The key of the entry to be removed.

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