IMemoryCache.TryGetValue(Object, Object) IMemoryCache.TryGetValue(Object, Object) IMemoryCache.TryGetValue(Object, Object) Method

Definition

Gets the item associated with this key if present.

public bool TryGetValue (object key, out object value);
abstract member TryGetValue : obj *  -> bool
Public Function TryGetValue (key As Object, ByRef value As Object) As Boolean
Parameters
key
Object Object Object

An object identifying the requested entry.

value
Object Object Object

The located value or null.

Returns

True if the key was found.

Applies to