This documentation is archived and is not being maintained.

BitmapEffect.SetValue Method (SafeHandle, String, Object)

Sets the specified property to the given value.

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

protected static void SetValue(
	SafeHandle effect,
	string propertyName,
	Object value
You cannot use methods in XAML.


Type: System.Runtime.InteropServices.SafeHandle

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

Type: System.String

The name of the property to change.

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.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0