Validator.ValidateActivityChange(Activity, ActivityChangeAction) Method

Definition

When overridden in a derived class, validates a change based on a specified Activity being added or removed. This function is called during the application of changes that are made to the workflow during dynamic updates.

C#
public virtual System.Workflow.ComponentModel.Compiler.ValidationError ValidateActivityChange(System.Workflow.ComponentModel.Activity activity, System.Workflow.ComponentModel.ActivityChangeAction action);

Parameters

activity
Activity

The specified Activity.

Returns

The ValidationError generated by the operation.

Exceptions

activity is a null reference (Nothing in Visual Basic).

-or-

action is a null reference (Nothing).

Remarks

In the base implementation, a null reference (Visual Basic Nothing) is returned.

Applies to

Produit Versions
.NET Framework 3.0, 3.5, 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