GetUserProfileActivityValidator.Validate(ValidationManager, Object) GetUserProfileActivityValidator.Validate(ValidationManager, Object) GetUserProfileActivityValidator.Validate(ValidationManager, Object) Method

Definition

Verifies that the specified activity is valid.

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);
Public Overrides Function Validate (manager As ValidationManager, obj As Object) As ValidationErrorCollection
Parameters
manager
ValidationManager ValidationManager ValidationManager

A ValidationManager object that contains contextual information such as property validation, parent and child activity relationships, and so on.

obj
Object Object Object

The workflow activity that must be validated.

Returns

Returns ValidationErrorCollection object that contains a collection of ValidationError objects. Any errors or warnings encountered during the validation of the workflow activity will be stored in the collection.

Remarks

The Validate(ValidationManager, Object) method enforces the rules included in the code that govern the workflow activity that is being validated.

Applies to