Partager via


BitmapEffect.SetValue(SafeHandle, String, Object) Méthode

Définition

Attention

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

Définit la propriété spécifiée sur la valeur donnée.

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)

Paramètres

effect
SafeHandle

Handle à l'effet qui contient la propriété à changer.

propertyName
String

Nom de la propriété à changer.

value
Object

Valeur à utiliser pour définir la propriété.

Attributs

Remarques

Cette méthode est destinée à être une méthode d’assistance pour UpdateUnmanagedPropertyState. Lorsque vous remplacez UpdateUnmanagedPropertyState, utilisez cette option SetValue pour mettre à jour les valeurs de propriété non managées.

S’applique à