Edit

Share via


ModelProperty.SetValue(Object) Method

Definition

Sets a local value on a property.

public:
 abstract System::Activities::Presentation::Model::ModelItem ^ SetValue(System::Object ^ value);
public abstract System.Activities.Presentation.Model.ModelItem SetValue (object value);
abstract member SetValue : obj -> System.Activities.Presentation.Model.ModelItem
Public MustOverride Function SetValue (value As Object) As ModelItem

Parameters

value
Object

The new value to set.

Returns

Returns value as a ModelItem.

Remarks

If value is not a ModelItem, it is wrapped in a ModelItem, which is returned to the caller. It is valid to set value to null, in which case Value will be null. This is different from calling ClearValue.

Note

Using this method, the value will not be set on the underlying property until the editing context completes. To update the underlying property immediately, use Setter.

Applies to