Condividi tramite


CompositeActivityValidator.ValidateActivityChange Metodo

Definizione

Convalida la modifica in base alla classe Activity interessata e ne fornisce l'errore.

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

Parametri

activity
Activity

Proprietà Activity interessata.

action
ActivityChangeAction

Classe ActivityChangeAction che definisce la modifica.

Restituisce

ValidationError

Classe ValidationError usata dalla convalida.

Eccezioni

activity è un riferimento null (Nothing in Visual Basic).

-oppure-

      <code data-dev-comment-type="paramref">action</code> è un riferimento null (<code data-dev-comment-type="langword">Nothing</code>).

Commenti

Se si verifica la convalida senza errori, viene restituito un riferimento null (Nothing).

Si applica a