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

定義

ResourceDictionary 收到資源的要求時發生。Occurs when the ResourceDictionary receives a request for a resource.

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

要取得的資源的索引鍵。The key of the resource to get.

value
Object

要求的資源的值。The value of the requested resource.

canCache
Boolean

如果該資源可儲存並稍後使用,則為 true,否則為 falsetrue if the resource can be saved and used later; otherwise, false.

適用於