Redigera

Dela via


CompositeActivityValidator.Validate(ValidationManager, Object) Method

Definition

Validates the CompositeActivity configuration.

public:
 override System::Workflow::ComponentModel::Compiler::ValidationErrorCollection ^ Validate(System::Workflow::ComponentModel::Compiler::ValidationManager ^ manager, System::Object ^ obj);
public override System.Workflow.ComponentModel.Compiler.ValidationErrorCollection Validate (System.Workflow.ComponentModel.Compiler.ValidationManager manager, object obj);
override this.Validate : System.Workflow.ComponentModel.Compiler.ValidationManager * obj -> System.Workflow.ComponentModel.Compiler.ValidationErrorCollection
Public Overrides Function Validate (manager As ValidationManager, obj As Object) As ValidationErrorCollection

Parameters

manager
ValidationManager

The ValidationManager linked to the validation.

obj
Object

Activity to be validated.

Returns

A ValidationErrorCollection of errors found during validation.

Exceptions

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

Remarks

This method calls Validate on every child Activity in the EnabledActivities collection. It also checks that no more than one CancellationHandlerActivity, FaultHandlersActivity, or CompensationHandlerActivity is attached to the CompositeActivity.

Applies to