Bewerken

Delen via


WorkflowChanges.SetCondition(Object, Object) Method

Definition

Sets the condition property on a dependency object.

public:
 static void SetCondition(System::Object ^ dependencyObject, System::Object ^ value);
public static void SetCondition (object dependencyObject, object value);
static member SetCondition : obj * obj -> unit
Public Shared Sub SetCondition (dependencyObject As Object, value As Object)

Parameters

dependencyObject
Object

A DependencyObject (or derived type) that contains a condition property, such as the SequentialWorkflowActivity and StateMachineWorkflowActivity activities.

value
Object

The condition type to set on the dependency object, such as an ActivityCondition.

Remarks

The ConditionProperty is an attached dependency property, that is, it is declared and used by one type and set on another. Therefore, there must be static get and set methods on the type declaring the property.

Helper method for setting ConditionProperty.

Applies to

See also