CompositeActivityValidator.ValidateActivityChange Methode

Definition

Überprüft die Änderung anhand der betroffenen Activity und stellt den Fehler bereit.

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

Parameter

activity
Activity

Die betroffene Activity.

action
ActivityChangeAction

Die ActivityChangeAction, die die Änderung definiert.

Gibt zurück

Der ValidationError der Validierung.

Ausnahmen

activity ist ein NULL-Verweis (Nothing in Visual Basic).

- oder -

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

Hinweise

Wenn bei der Validierung kein Fehler auftritt, wird ein NULL-Verweis (Nothing) zurückgegeben.

Gilt für: