語言

ResourceDictionary.OnGettingValue(Object, Object, Boolean) 方法

定義

當 收到 ResourceDictionary 資源請求時,會發生這種情況。

protected:
 virtual void OnGettingValue(System::Object ^ key, System::Object ^ % value, [Runtime::InteropServices::Out] bool % canCache);
protected virtual void OnGettingValue(object key, ref object value, out bool canCache);
abstract member OnGettingValue : obj * obj * bool -> unit
override this.OnGettingValue : obj * obj * bool -> unit
Protected Overridable Sub OnGettingValue (key As Object, ByRef value As Object, ByRef canCache As Boolean)

參數

key
Object

資源的關鍵是取得。

value
Object

請求資源的價值。

canCache
Boolean

true如果資源可以儲存並日後使用;否則,。 false

適用於