MemoryCache.TryGetValue(Object, Object) メソッド

定義

このキーに関連付けられている項目 (存在する場合) を取得します。

public:
 virtual bool TryGetValue(System::Object ^ key, [Runtime::InteropServices::Out] System::Object ^ % result);
public bool TryGetValue (object key, out 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

パラメーター

key
Object

要求されたエントリを識別するオブジェクト。

result
Object

戻り値

true キーが見つかった場合。

実装

適用対象