Verifies that the given activity is valid.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
public override ValidationErrorCollection Validate( ValidationManager manager, Object obj )
- Type: System.Workflow.ComponentModel.Compiler.ValidationManager
The ValidationManager associated with validation.
Return ValueType: System.Workflow.ComponentModel.Compiler.ValidationErrorCollection
A ValidationErrorCollection object that contains any errors or warnings that occurred during validation.
The following example shows how to override the method for an ActivityValidator used for a custom activity that has a single dependency property named Msg of type String. The custom validator ensures that the Msg property is set. If it is not set, the compiler displays an error when the method is called on the ActivityValidator and the compilation fails.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
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.