ScriptBlockExpressionAst(IScriptExtent, ScriptBlockAst) 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 script block expression.
public:
ScriptBlockExpressionAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::Management::Automation::Language::ScriptBlockAst ^ scriptBlock);
public ScriptBlockExpressionAst (System.Management.Automation.Language.IScriptExtent extent, System.Management.Automation.Language.ScriptBlockAst scriptBlock);
new System.Management.Automation.Language.ScriptBlockExpressionAst : System.Management.Automation.Language.IScriptExtent * System.Management.Automation.Language.ScriptBlockAst -> System.Management.Automation.Language.ScriptBlockExpressionAst
Public Sub New (extent As IScriptExtent, scriptBlock As ScriptBlockAst)
Parameters
- extent
- IScriptExtent
The extent of the script block, from the opening curly brace to the closing curly brace.
- scriptBlock
- ScriptBlockAst
The script block.
Exceptions
If extent
or scriptBlock
is null.