Validator::ValidateActivityChange Method (Activity^, ActivityChangeAction^)
.NET Framework (current version)
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.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
public: virtual ValidationError^ ValidateActivityChange( Activity^ activity, ActivityChangeAction^ action )
Parameters
- activity
-
Type:
System.Workflow.ComponentModel::Activity^
The specified Activity.
- action
-
Type:
System.Workflow.ComponentModel::ActivityChangeAction^
The specified ActivityChangeAction.
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
Available since 3.0
Show: