Udostępnij za pośrednictwem


AstToXamlConverter.Validate(FunctionDefinitionAst) Method

Definition

Validates a PowerShell AST as a valid workflow.

public:
 static System::Collections::Generic::List<System::Management::Automation::Language::ParseError ^> ^ Validate(System::Management::Automation::Language::FunctionDefinitionAst ^ ast);
public static System.Collections.Generic.List<System.Management.Automation.Language.ParseError> Validate (System.Management.Automation.Language.FunctionDefinitionAst ast);
static member Validate : System.Management.Automation.Language.FunctionDefinitionAst -> System.Collections.Generic.List<System.Management.Automation.Language.ParseError>
Public Shared Function Validate (ast As FunctionDefinitionAst) As List(Of ParseError)

Parameters

ast
FunctionDefinitionAst

The PowerShell AST to convert

Returns

Applies to