Redigera

Dela via


WorkflowChanges.GetCondition(Object) Method

Definition

Gets the condition property on a dependency object.

public:
 static System::Object ^ GetCondition(System::Object ^ dependencyObject);
public static object GetCondition (object dependencyObject);
static member GetCondition : obj -> obj
Public Shared Function GetCondition (dependencyObject As Object) As Object

Parameters

dependencyObject
Object

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

Returns

A condition property type, such as ActivityCondition.

Exceptions

dependencyObject is null (Nothing in Visual Basic).

dependencyObject is not a DependencyObject or a type that derives from DependencyObject.

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 getting ConditionProperty.

Applies to

See also