SetValue Method (SafeHandle, String, Object)
Collapse the table of content
Expand the table of content

BitmapEffect.SetValue Method (SafeHandle, String, Object)

 
obsoleteCodeEntityT:System.Windows.Media.Effects.EffectNote: This API is now obsolete.

Sets the specified property to the given value.

Namespace:   System.Windows.Media.Effects
Assembly:  PresentationCore (in PresentationCore.dll)

[SecurityCriticalAttribute]
[ObsoleteAttribute("BitmapEffects are deprecated and no longer function.  Consider using Effects where appropriate instead.")]
[SecurityTreatAsSafeAttribute]
protected static void SetValue(
	SafeHandle effect,
	string propertyName,
	object value
)

Parameters

effect
Type: System.Runtime.InteropServices.SafeHandle

The handle to the effect that contains the property to change.

propertyName
Type: System.String

The name of the property to change.

value
Type: System.Object

The value to use to set the property.

This method is intended as a helper method for UpdateUnmanagedPropertyState. When you override UpdateUnmanagedPropertyState, use SetValue to update unmanaged property values.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft