共用方式為


BitmapEffect.SetValue(SafeHandle, String, Object) 方法

定義

警告

BitmapEffects are deprecated and no longer function. Consider using Effects where appropriate instead.

將指定的屬性設定為指定的值。

protected:
 static void SetValue(System::Runtime::InteropServices::SafeHandle ^ effect, System::String ^ propertyName, System::Object ^ value);
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
protected static void SetValue (System.Runtime.InteropServices.SafeHandle effect, string propertyName, object value);
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
[System.Obsolete("BitmapEffects are deprecated and no longer function.  Consider using Effects where appropriate instead.")]
protected static void SetValue (System.Runtime.InteropServices.SafeHandle effect, string propertyName, object value);
[System.Obsolete("BitmapEffects are deprecated and no longer function.  Consider using Effects where appropriate instead.")]
protected static void SetValue (System.Runtime.InteropServices.SafeHandle effect, string propertyName, object value);
[<System.Security.SecurityCritical>]
[<System.Security.SecurityTreatAsSafe>]
static member SetValue : System.Runtime.InteropServices.SafeHandle * string * obj -> unit
[<System.Security.SecurityCritical>]
[<System.Security.SecurityTreatAsSafe>]
[<System.Obsolete("BitmapEffects are deprecated and no longer function.  Consider using Effects where appropriate instead.")>]
static member SetValue : System.Runtime.InteropServices.SafeHandle * string * obj -> unit
[<System.Obsolete("BitmapEffects are deprecated and no longer function.  Consider using Effects where appropriate instead.")>]
static member SetValue : System.Runtime.InteropServices.SafeHandle * string * obj -> unit
Protected Shared Sub SetValue (effect As SafeHandle, propertyName As String, value As Object)

參數

effect
SafeHandle

含有要變更屬性之效果的控制代碼。

propertyName
String

要變更的屬性名稱。

value
Object

用來設定屬性的值。

屬性

備註

這個方法的目的是做為 的 UpdateUnmanagedPropertyState 協助程式方法。 當您覆寫 UpdateUnmanagedPropertyState 時,請使用 SetValue 來更新 Unmanaged 屬性值。

適用於