ScriptBlockExpressionAst(IScriptExtent, ScriptBlockAst) Constructor

Definition

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.

Applies to