ActivityValidator Class
Derivative of DependencyObjectValidator that is a base class for all activity validator components.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
System.Workflow.ComponentModel.Compiler::Validator
System.Workflow.ComponentModel.Compiler::DependencyObjectValidator
System.Workflow.ComponentModel.Compiler::ActivityValidator
System.Workflow.Activities::CallExternalMethodActivityValidator
System.Workflow.Activities::HandleExternalEventActivityValidator
System.Workflow.ComponentModel.Compiler::CompositeActivityValidator
| Name | Description | |
|---|---|---|
![]() | ActivityValidator() | Initializes a new instance of the ActivityValidator class. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetFullPropertyName(ValidationManager^) | Helper method to extract the full property name. (Inherited from Validator.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
![]() | Validate(ValidationManager^, Object^) | Verifies that the given activity is valid. (Overrides DependencyObjectValidator::Validate(ValidationManager^, Object^).) |
![]() | ValidateActivityChange(Activity^, ActivityChangeAction^) | |
![]() | ValidateProperties(ValidationManager^, Object^) | Helper method to automatically validate the specific objects properties.(Inherited from Validator.) |
![]() | ValidateProperty(PropertyInfo^, Object^, Object^, ValidationManager^) | Performs validation on a property and returns a ValidationErrorCollection that contains the results of that validation.(Inherited from Validator.) |
Note |
|---|
This material discusses types and namespaces that are obsolete. For more information, see Deprecated Types in Windows Workflow Foundation 4.5. |
The following example shows a complete ActivityValidator used for a custom activity. The custom activity is a ConsoleWriteLineActivity activity that has a single dependency property named Msg of type String. The validator ensures that the Msg property is set. If it is not set, the compiler displays an error when the Validate method is called on the ActivityValidator and the compilation fails.
Available since 3.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


