Udostępnij za pośrednictwem


CommandExpressionAst Constructor

Definition

Construct a command that wraps an expression.

public:
 CommandExpressionAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::Management::Automation::Language::ExpressionAst ^ expression, System::Collections::Generic::IEnumerable<System::Management::Automation::Language::RedirectionAst ^> ^ redirections);
public CommandExpressionAst (System.Management.Automation.Language.IScriptExtent extent, System.Management.Automation.Language.ExpressionAst expression, System.Collections.Generic.IEnumerable<System.Management.Automation.Language.RedirectionAst> redirections);
new System.Management.Automation.Language.CommandExpressionAst : System.Management.Automation.Language.IScriptExtent * System.Management.Automation.Language.ExpressionAst * seq<System.Management.Automation.Language.RedirectionAst> -> System.Management.Automation.Language.CommandExpressionAst
Public Sub New (extent As IScriptExtent, expression As ExpressionAst, redirections As IEnumerable(Of RedirectionAst))

Parameters

extent
IScriptExtent

The extent of the expression.

expression
ExpressionAst

The expression being wrapped.

redirections
IEnumerable<RedirectionAst>

The redirections for the command, may be null.

Exceptions

If extent or expression is null.

Applies to