Aracılığıyla paylaş


MemoryCache.TryGetValue(Object, Object) Yöntem

Tanım

Varsa, bu anahtarla ilişkili öğeyi alır.

public:
 virtual bool TryGetValue(System::Object ^ key, [Runtime::InteropServices::Out] System::Object ^ % result);
public bool TryGetValue(object key, out object? result);
abstract member TryGetValue : obj * obj -> bool
override this.TryGetValue : obj * obj -> bool
Public Function TryGetValue (key As Object, ByRef result As Object) As Boolean

Parametreler

key
Object

İstenen girişi tanımlayan bir nesne.

result
Object

Döndürülenler

Anahtarın bulunup bulunmadığını true.

Uygulamalar

Şunlara uygulanır