TokenInMemoryCacheTKey, TValueTryGet(TKey, TValue) - метод
Attempts to retrieve the cache value associated with the specified key.
Пространство имён: Tessa.Tokens.CachingСборка: Tessa (в Tessa.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
public virtual bool TryGet(
TKey key,
out TValue value
)
Public Overridable Function TryGet (
key As TKey,
<OutAttribute> ByRef value As TValue
) As Boolean
public:
virtual bool TryGet(
TKey key,
[OutAttribute] TValue% value
)
abstract TryGet :
key : 'TKey *
value : 'TValue byref -> bool
override TryGet :
key : 'TKey *
value : 'TValue byref -> bool
- key TKey
- The key used to retrieve the cache value.
- value TValue
- The cache value if retrieval is successful; otherwise, .
Boolean if the value was found; otherwise,
.
ITokenCacheTKey, TValueTryGet(TKey, TValue)
This method will automatically trigger cleanup if necessary, before attempting to retrieve the value.