Validates the specified activity tree.
Namespace:  Microsoft.TeamFoundation.Build.Workflow
Assembly:  Microsoft.TeamFoundation.Build.Workflow (in Microsoft.TeamFoundation.Build.Workflow.dll)
Syntax
声明
Public Shared Sub ValidateWorkflow ( _
    activity As Activity _
)
public static void ValidateWorkflow(
    Activity activity
)
public:
static void ValidateWorkflow(
    Activity^ activity
)
static member ValidateWorkflow : 
        activity:Activity -> unit 
public static function ValidateWorkflow(
    activity : Activity
)
Parameters
- activity
 Type: System.Activities.Activity
 The root Activity.
.NET Framework Security
- 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.