Modifica

Condividi tramite


CompositeActivityValidator.ValidateActivityChange Method

Definition

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

public:
 override System::Workflow::ComponentModel::Compiler::ValidationError ^ ValidateActivityChange(System::Workflow::ComponentModel::Activity ^ activity, System::Workflow::ComponentModel::ActivityChangeAction ^ action);
public override System.Workflow.ComponentModel.Compiler.ValidationError ValidateActivityChange (System.Workflow.ComponentModel.Activity activity, System.Workflow.ComponentModel.ActivityChangeAction action);
override this.ValidateActivityChange : System.Workflow.ComponentModel.Activity * System.Workflow.ComponentModel.ActivityChangeAction -> System.Workflow.ComponentModel.Compiler.ValidationError
Public Overrides Function ValidateActivityChange (activity As Activity, action As ActivityChangeAction) As ValidationError

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