Поделиться через


Метод MruSecurityTokenCache.TryReplaceEntry

Attempts to replace an existing entry in the cache with a new one.

Пространство имен: Microsoft.IdentityModel
Сборка: Microsoft.IdentityModel (в microsoft.identitymodel.dll)

Использование

    Dim instance As MruSecurityTokenCache
Dim key As Object
Dim newValue As SecurityToken
Dim returnValue As Boolean

returnValue = instance.TryReplaceEntry(key, newValue)

Синтаксис

'Декларация
Public Overrides Function TryReplaceEntry ( _
    key As Object, _
    newValue As SecurityToken _
) As Boolean
public override bool TryReplaceEntry (
    Object key,
    SecurityToken newValue
)
public:
virtual bool TryReplaceEntry (
    Object^ key, 
    SecurityToken^ newValue
) override
public boolean TryReplaceEntry (
    Object key, 
    SecurityToken newValue
)
public override function TryReplaceEntry (
    key : Object, 
    newValue : SecurityToken
) : boolean

Параметры

  • key
    The key of the entry to be retrieved.
  • newValue
    The SecurityToken which will replace the entry associated with the key.

Возвращаемое значение

A Boolean indicating success or failure.

Исключения

Тип исключений Условие

Примечания

The replace operation for this MRU cache removes the existing entry and adds newValue to the head of the MRU list.

Безопасность потоков

Любые открытые статические члены (Shared в Visual Basic) этого типа являются поточно-ориентированными.Любые члены экземпляров не являются гарантированно поточно-ориентированными.

Платформы

Платформа разработки

Windows Server 2003, Windows Vista

Target Platforms

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

См. также

Справочник

Класс MruSecurityTokenCache
MruSecurityTokenCache Члены
Пространство имен Microsoft.IdentityModel