Edit

Share via


CompositeActivityValidator.ValidateActivityChange Method

Definition

Validates the change based on the affected Activity and provides the error.

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

Parameters

activity
Activity

The affected Activity.

action
ActivityChangeAction

The ActivityChangeAction that defines the change.

Returns

The ValidationError by the validation.

Exceptions

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

-or-

      <code data-dev-comment-type="paramref">action</code> is a null reference (<code data-dev-comment-type="langword">Nothing</code>).

Remarks

If validation occurs without error, a null reference (Nothing) is returned.

Applies to

Product 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