Share via


DynamicKeywordStatementAst Constructor

Definition

Construct a DynamicKeyword statement.

public:
 DynamicKeywordStatementAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::Collections::Generic::IEnumerable<System::Management::Automation::Language::CommandElementAst ^> ^ commandElements);
public DynamicKeywordStatementAst (System.Management.Automation.Language.IScriptExtent extent, System.Collections.Generic.IEnumerable<System.Management.Automation.Language.CommandElementAst> commandElements);
new System.Management.Automation.Language.DynamicKeywordStatementAst : System.Management.Automation.Language.IScriptExtent * seq<System.Management.Automation.Language.CommandElementAst> -> System.Management.Automation.Language.DynamicKeywordStatementAst
Public Sub New (extent As IScriptExtent, commandElements As IEnumerable(Of CommandElementAst))

Parameters

extent
IScriptExtent

The extent of the expression, starting with the attribute and ending after the expression being attributed.

commandElements
IEnumerable<CommandElementAst>

A collection of CommandElementAst used to invoke DynamicKeyword specific command.

Exceptions

If commandElements is null or empty.

Applies to