ModelProperty.SetValue(Object) Method

Definition

Sets a local value on a property.

C#
public abstract System.Activities.Presentation.Model.ModelItem SetValue(object value);

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.

Напомена

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

Производ Верзије
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1