ExpandableStringExpressionAst Constructor

Definition

Construct an expandable string. The value is scanned for nested variable references and expressions which are evaluated at runtime when this ast is compiled.

public:
 ExpandableStringExpressionAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::String ^ value, System::Management::Automation::Language::StringConstantType type);
public ExpandableStringExpressionAst (System.Management.Automation.Language.IScriptExtent extent, string value, System.Management.Automation.Language.StringConstantType type);
new System.Management.Automation.Language.ExpandableStringExpressionAst : System.Management.Automation.Language.IScriptExtent * string * System.Management.Automation.Language.StringConstantType -> System.Management.Automation.Language.ExpandableStringExpressionAst
Public Sub New (extent As IScriptExtent, value As String, type As StringConstantType)

Parameters

extent
IScriptExtent

The extent of the string.

value
String

The unexpanded value of the string.

type
StringConstantType

The kind of string, must be one of

Exceptions

If value or extent is null.

Applies to