WorkflowChanges.SetCondition(Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.