ArrayLiteralAst(IScriptExtent, IList<ExpressionAst>) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.