Partager via


ArrayLiteralAst(IScriptExtent, IList<ExpressionAst>) Constructor

Definition

Construct an array literal expression.

public:
 ArrayLiteralAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::Collections::Generic::IList<System::Management::Automation::Language::ExpressionAst ^> ^ elements);
public ArrayLiteralAst (System.Management.Automation.Language.IScriptExtent extent, System.Collections.Generic.IList<System.Management.Automation.Language.ExpressionAst> elements);
new System.Management.Automation.Language.ArrayLiteralAst : System.Management.Automation.Language.IScriptExtent * System.Collections.Generic.IList<System.Management.Automation.Language.ExpressionAst> -> System.Management.Automation.Language.ArrayLiteralAst
Public Sub New (extent As IScriptExtent, elements As IList(Of ExpressionAst))

Parameters

extent
IScriptExtent

The extent of all of the elements.

elements
IList<ExpressionAst>

The collection of asts that represent the array literal.

Exceptions

If extent is null.

If elements is null or is an empty collection.

Applies to