다음을 통해 공유


VariableExpressionAst Constructors

Definition

Overloads

VariableExpressionAst(IScriptExtent, VariablePath, Boolean)

Construct a variable reference with an existing VariablePath (rather than construct a new one.)

VariableExpressionAst(IScriptExtent, String, Boolean)

Construct a variable reference.

VariableExpressionAst(IScriptExtent, VariablePath, Boolean)

Construct a variable reference with an existing VariablePath (rather than construct a new one.)

public:
 VariableExpressionAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::Management::Automation::VariablePath ^ variablePath, bool splatted);
public VariableExpressionAst (System.Management.Automation.Language.IScriptExtent extent, System.Management.Automation.VariablePath variablePath, bool splatted);
new System.Management.Automation.Language.VariableExpressionAst : System.Management.Automation.Language.IScriptExtent * System.Management.Automation.VariablePath * bool -> System.Management.Automation.Language.VariableExpressionAst
Public Sub New (extent As IScriptExtent, variablePath As VariablePath, splatted As Boolean)

Parameters

extent
IScriptExtent
variablePath
VariablePath
splatted
Boolean

Exceptions

If extent or variablePath is null.

Applies to

VariableExpressionAst(IScriptExtent, String, Boolean)

Construct a variable reference.

public:
 VariableExpressionAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::String ^ variableName, bool splatted);
public VariableExpressionAst (System.Management.Automation.Language.IScriptExtent extent, string variableName, bool splatted);
new System.Management.Automation.Language.VariableExpressionAst : System.Management.Automation.Language.IScriptExtent * string * bool -> System.Management.Automation.Language.VariableExpressionAst
Public Sub New (extent As IScriptExtent, variableName As String, splatted As Boolean)

Parameters

extent
IScriptExtent

The extent of the variable.

variableName
String

The name of the variable. A leading '$' or '@' is not removed, those characters are assumed to be part of the variable name.

splatted
Boolean

True if splatting, like @PSBoundParameters, false otherwise, like $false

Exceptions

If extent or variableName is null, or if variableName is an empty string.

Applies to