ActivityValidator Class
Derivative of DependencyObjectValidator that is a base class for all activity validator components.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
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(ValidationManager, Object) method is called on the ActivityValidator and the compilation fails.
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
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.