BitmapEffect.SetValue Method (SafeHandle, String, Object)

Note: This API is now obsolete. The non-obsolete alternative is Effect.

Sets the specified property to the given value.

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

[ObsoleteAttribute("BitmapEffects are deprecated and no longer function.  Consider using Effects where appropriate instead.")]
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

Supported in: 3.5, 3.0
Obsolete (compiler warning) in 4

.NET Framework Client Profile

Supported in: 3.5 SP1
Obsolete (compiler warning) in 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft