Export (0) Print
Expand All

ActivityValidator Class

Derivative of DependencyObjectValidator that is a base class for all activity validator components.

Namespace:  System.Workflow.ComponentModel.Compiler
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

public class ActivityValidator extends DependencyObjectValidator

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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.

.NET Framework

Supported in: 3.5, 3.0

Community Additions

ADD
Show:
© 2014 Microsoft