Returns a value that indicates if the
specified key exists in the cache. Also if it exists, marks it as
MRU.
Namespace: Microsoft.IdentityModel
Assembly: Microsoft.IdentityModel (in
microsoft.identitymodel.dll)
Usage
Visual Basic |
Dim instance As MruSecurityTokenCache
Dim key As Object
Dim value As SecurityToken
Dim returnValue As Boolean
returnValue = instance.TryGetEntry(key, value)
|
Syntax
Visual Basic |
Public Overrides Function TryGetEntry ( _
key As Object, _
<OutAttribute> ByRef value As SecurityToken _
) As Boolean
|
C# |
public override bool TryGetEntry (
Object key,
out SecurityToken value
)
|
C++ |
public:
virtual bool TryGetEntry (
Object^ key,
[OutAttribute] SecurityToken^% value
) override
|
J# |
public boolean TryGetEntry (
Object key,
/** @attribute OutAttribute() */ /** @ref */ SecurityToken value
)
|
Parameters
- key
-
Specifies the key for the entry to be added.
- value
-
Returns the security token from the cache if found, otherwise,
null.
Return Value
True on success, False on failure.
Exceptions
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