src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/WorkflowValidation.cs
/// <summary>
/// Validate the workflow, if it is using the allowed activities.
/// </summary>
/// <param name="workflow">The workflow, which needs to be validated.</param>
/// <param name="runtimeAssembly">The additional runtime assembly, which is needed in validation process.</param>
Validate the workflow, if it is using the allowed activities.
Validate the workflow if it is using the allowed activities .
public ValidationResults ValidateWorkflow(Activity workflow, string runtimeAssembly)
        {
            PSWorkflowValidationResults validationResults = new PSWorkflowValidationResults();
            ValidateWorkflowInternal(workflow, runtimeAssembly, validationResults);
            return validationResults.Results;
        }
public ValidationResults ValidateWorkflow ( Activity workflow , string runtimeAssembly ) { PSWorkflowValidationResults validationResults = new PSWorkflowValidationResults ( ) ; ValidateWorkflowInternal ( workflow , runtimeAssembly , validationResults ) ; return validationResults . Results ; }
Validate the workflow, if it is using the allowed activities.
Validate the workflow if it is using the allowed activities .
workflow
Activity
The workflow, which needs to be validated.
The workflow which needs to be validated .
runtimeAssembly
string
The additional runtime assembly, which is needed in validation process.
The additional runtime assembly which is needed in validation process .