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

定義

警告

此 API 現已淘汰。

將指定的屬性設定為指定的值。Sets the specified property to the given value.

protected:
 static void SetValue(System::Runtime::InteropServices::SafeHandle ^ effect, System::String ^ propertyName, System::Object ^ value);
[System.Obsolete("BitmapEffects are deprecated and no longer function.  Consider using Effects where appropriate instead.")]
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
protected static void SetValue (System.Runtime.InteropServices.SafeHandle effect, string propertyName, object value);
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

含有要變更屬性之效果的控制代碼。The handle to the effect that contains the property to change.

propertyName
String

要變更的屬性名稱。The name of the property to change.

value
Object

用來設定屬性的值。The value to use to set the property.

屬性

備註

這個方法是做為的 helper 方法UpdateUnmanagedPropertyStateThis method is intended as a helper method for UpdateUnmanagedPropertyState. 當您覆UpdateUnmanagedPropertyState寫時SetValue , 請使用來更新未受管理的屬性值。When you override UpdateUnmanagedPropertyState, use SetValue to update unmanaged property values.

適用於