Dela via


ArrayExpressionAst(IScriptExtent, StatementBlockAst) Constructor

Definition

Construct an expression that forces the result to be an array.

public:
 ArrayExpressionAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::Management::Automation::Language::StatementBlockAst ^ statementBlock);
public ArrayExpressionAst (System.Management.Automation.Language.IScriptExtent extent, System.Management.Automation.Language.StatementBlockAst statementBlock);
new System.Management.Automation.Language.ArrayExpressionAst : System.Management.Automation.Language.IScriptExtent * System.Management.Automation.Language.StatementBlockAst -> System.Management.Automation.Language.ArrayExpressionAst
Public Sub New (extent As IScriptExtent, statementBlock As StatementBlockAst)

Parameters

extent
IScriptExtent

The extent of the expression, including the opening '@(' and closing ')'.

statementBlock
StatementBlockAst

The statements executed as part of the expression.

Exceptions

If extent or statementBlock is null.

Applies to