Validator.ValidateActivityChange Method (Activity, ActivityChangeAction)

 

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.

Namespace:   System.Workflow.ComponentModel.Compiler
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

public virtual ValidationError ValidateActivityChange(
	Activity activity,
	ActivityChangeAction action
)

Return Value

Type: System.Workflow.ComponentModel.Compiler.ValidationError

The ValidationError generated by the operation.

Exception Condition
ArgumentNullException

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

ArgumentNullException

action is a null reference (Nothing).

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

.NET Framework
Available since 3.0
Return to top
Show: