Udostępnij za pośrednictwem


BinaryExpressionAst Constructor

Definition

Initializes a new instance of the binary expression.

public:
 BinaryExpressionAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::Management::Automation::Language::ExpressionAst ^ left, System::Management::Automation::Language::TokenKind operator, System::Management::Automation::Language::ExpressionAst ^ right, System::Management::Automation::Language::IScriptExtent ^ errorPosition);
public BinaryExpressionAst (System.Management.Automation.Language.IScriptExtent extent, System.Management.Automation.Language.ExpressionAst left, System.Management.Automation.Language.TokenKind operator, System.Management.Automation.Language.ExpressionAst right, System.Management.Automation.Language.IScriptExtent errorPosition);
new System.Management.Automation.Language.BinaryExpressionAst : System.Management.Automation.Language.IScriptExtent * System.Management.Automation.Language.ExpressionAst * System.Management.Automation.Language.TokenKind * System.Management.Automation.Language.ExpressionAst * System.Management.Automation.Language.IScriptExtent -> System.Management.Automation.Language.BinaryExpressionAst
Public Sub New (extent As IScriptExtent, left As ExpressionAst, operator As TokenKind, right As ExpressionAst, errorPosition As IScriptExtent)

Parameters

extent
IScriptExtent

The extent of the expression.

left
ExpressionAst

The left hand operand.

operator
TokenKind

The binary operator.

right
ExpressionAst

The right hand operand.

errorPosition
IScriptExtent

The position to report if an error occurs at runtime while evaluating the binary operation.

Exceptions

If operator is not a valid binary operator.

If extent, left, right, or errorPosition is null.

Applies to