Attempts to replace an existing entry in
the cache with a new one.
Namespace: Microsoft.IdentityModel
Assembly: Microsoft.IdentityModel (in
microsoft.identitymodel.dll)
Usage
Visual Basic |
Dim instance As MruSecurityTokenCache
Dim key As Object
Dim newValue As SecurityToken
Dim returnValue As Boolean
returnValue = instance.TryReplaceEntry(key, newValue)
|
Syntax
Visual Basic |
Public Overrides Function TryReplaceEntry ( _
key As Object, _
newValue As SecurityToken _
) As Boolean
|
C# |
public override bool TryReplaceEntry (
Object key,
SecurityToken newValue
)
|
C++ |
public:
virtual bool TryReplaceEntry (
Object^ key,
SecurityToken^ newValue
) override
|
J# |
public boolean TryReplaceEntry (
Object key,
SecurityToken newValue
)
|
JScript |
public override function TryReplaceEntry (
key : Object,
newValue : SecurityToken
) : boolean
|
Parameters
- key
-
The key of the entry to be retrieved.
- newValue
-
The SecurityToken which will replace the entry associated with
the key.
Return Value
A Boolean indicating success or failure.
Exceptions
Remarks
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