다음을 통해 공유


UnaryExpressionAst(IScriptExtent, TokenKind, ExpressionAst) Constructor

Definition

Construct a unary expression.

public:
 UnaryExpressionAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::Management::Automation::Language::TokenKind tokenKind, System::Management::Automation::Language::ExpressionAst ^ child);
public UnaryExpressionAst (System.Management.Automation.Language.IScriptExtent extent, System.Management.Automation.Language.TokenKind tokenKind, System.Management.Automation.Language.ExpressionAst child);
new System.Management.Automation.Language.UnaryExpressionAst : System.Management.Automation.Language.IScriptExtent * System.Management.Automation.Language.TokenKind * System.Management.Automation.Language.ExpressionAst -> System.Management.Automation.Language.UnaryExpressionAst
Public Sub New (extent As IScriptExtent, tokenKind As TokenKind, child As ExpressionAst)

Parameters

extent
IScriptExtent

The extent of the expression, including the operator (which may be prefix or postfix.).

tokenKind
TokenKind

The unary operator token kind for the operation.

child
ExpressionAst

The expression that the unary operator is applied to.

Exceptions

If extent or child is null.

If tokenKind is not a valid unary operator.

Applies to