Compartilhar via


TernaryExpressionAst Constructor

Definition

Initializes a new instance of the a ternary expression.

public TernaryExpressionAst (System.Management.Automation.Language.IScriptExtent extent, System.Management.Automation.Language.ExpressionAst condition, System.Management.Automation.Language.ExpressionAst ifTrue, System.Management.Automation.Language.ExpressionAst ifFalse);
new System.Management.Automation.Language.TernaryExpressionAst : System.Management.Automation.Language.IScriptExtent * System.Management.Automation.Language.ExpressionAst * System.Management.Automation.Language.ExpressionAst * System.Management.Automation.Language.ExpressionAst -> System.Management.Automation.Language.TernaryExpressionAst
Public Sub New (extent As IScriptExtent, condition As ExpressionAst, ifTrue As ExpressionAst, ifFalse As ExpressionAst)

Parameters

extent
IScriptExtent

The extent of the expression.

condition
ExpressionAst

The condition operand.

ifTrue
ExpressionAst

The if clause.

ifFalse
ExpressionAst

The else clause.

Applies to