Modifier

Partager via


DependencyObject.SetValueBase(DependencyProperty, Object) Method

Definition

Sets the value of the DependencyProperty to the specified Object, bypassing the SetValue(DependencyProperty, Object).

public:
 void SetValueBase(System::Workflow::ComponentModel::DependencyProperty ^ dependencyProperty, System::Object ^ value);
public void SetValueBase (System.Workflow.ComponentModel.DependencyProperty dependencyProperty, object value);
member this.SetValueBase : System.Workflow.ComponentModel.DependencyProperty * obj -> unit
Public Sub SetValueBase (dependencyProperty As DependencyProperty, value As Object)

Parameters

dependencyProperty
DependencyProperty

The DependencyProperty to be set to the Object.

value
Object

The Object that becomes the value of the DependencyProperty.

Exceptions

dependencyProperty is a null reference (Nothing in Visual Basic).

Remarks

This method is useful inside the SetValue override implementation. Typically, the SetValue override code would do some custom logic before calling the SetValueBase method.

For setting a SetValue override, PropertyMetadata can be used in DependencyProperty, Register, or RegisterAttached calls.

Applies to