Compartir a través de


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

Definición

Precaución

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

Establece la propiedad especificada en el valor especificado.

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)

Parámetros

effect
SafeHandle

El identificador al efecto que contiene la propiedad que se va a cambiar.

propertyName
String

Es el nombre de la propiedad que se va a cambiar.

value
Object

El nuevo valor que se va a usar para establecer la propiedad.

Atributos

Comentarios

Este método está pensado como método auxiliar para UpdateUnmanagedPropertyState. Al invalidar UpdateUnmanagedPropertyState, use SetValue para actualizar los valores de propiedad no administrados.

Se aplica a