BitmapEffect.SetValue Method (SafeHandle, String, Object)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

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 Shared Sub SetValue (
	effect As SafeHandle,
	propertyName As String,
	value As Object


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.

.NET Framework
Available since 3.0
Return to top