Share via


ConvertExpressionAst(IScriptExtent, TypeConstraintAst, ExpressionAst) Constructor

Definition

Construct a cast expression.

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

Parameters

extent
IScriptExtent

The extent of the expression, starting with the type literal and ending after the expression being converted.

typeConstraint
TypeConstraintAst

The type to convert to.

child
ExpressionAst

The expression being converted.

Exceptions

If extent, typeConstraint, or child is null.

Applies to