BitmapEffect.SetValue(SafeHandle, String, Object) Metod

Definition

Varning

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

Anger den angivna egenskapen till det angivna värdet.

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)

Parametrar

effect
SafeHandle

Referensen till den effekt som innehåller egenskapen som ska ändras.

propertyName
String

Namnet på egenskapen som ska ändras.

value
Object

Värdet som ska användas för att ange egenskapen.

Attribut

Kommentarer

Den här metoden är avsedd som en hjälpmetod för UpdateUnmanagedPropertyState. När du åsidosätter UpdateUnmanagedPropertyStateanvänder SetValue du för att uppdatera ohanterade egenskapsvärden.

Gäller för