DataStatementAst 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 a data statement.
public:
DataStatementAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::String ^ variableName, System::Collections::Generic::IEnumerable<System::Management::Automation::Language::ExpressionAst ^> ^ commandsAllowed, System::Management::Automation::Language::StatementBlockAst ^ body);
public DataStatementAst (System.Management.Automation.Language.IScriptExtent extent, string variableName, System.Collections.Generic.IEnumerable<System.Management.Automation.Language.ExpressionAst> commandsAllowed, System.Management.Automation.Language.StatementBlockAst body);
new System.Management.Automation.Language.DataStatementAst : System.Management.Automation.Language.IScriptExtent * string * seq<System.Management.Automation.Language.ExpressionAst> * System.Management.Automation.Language.StatementBlockAst -> System.Management.Automation.Language.DataStatementAst
Public Sub New (extent As IScriptExtent, variableName As String, commandsAllowed As IEnumerable(Of ExpressionAst), body As StatementBlockAst)
Parameters
- extent
- IScriptExtent
The extent of the data statement, extending from the data keyword to the closing curly brace.
- variableName
- String
The name of the variable, if specified, otherwise null.
- commandsAllowed
- IEnumerable<ExpressionAst>
The list of commands allowed in the data statement, if specified, otherwise null.
- body
- StatementBlockAst
The body of the data statement.
Exceptions
If extent
or body
is null.