Udostępnij za pośrednictwem


ParameterAst Constructor

Definition

Construct a parameter ast from the name, attributes, and default value.

public:
 ParameterAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::Management::Automation::Language::VariableExpressionAst ^ name, System::Collections::Generic::IEnumerable<System::Management::Automation::Language::AttributeBaseAst ^> ^ attributes, System::Management::Automation::Language::ExpressionAst ^ defaultValue);
public ParameterAst (System.Management.Automation.Language.IScriptExtent extent, System.Management.Automation.Language.VariableExpressionAst name, System.Collections.Generic.IEnumerable<System.Management.Automation.Language.AttributeBaseAst> attributes, System.Management.Automation.Language.ExpressionAst defaultValue);
new System.Management.Automation.Language.ParameterAst : System.Management.Automation.Language.IScriptExtent * System.Management.Automation.Language.VariableExpressionAst * seq<System.Management.Automation.Language.AttributeBaseAst> * System.Management.Automation.Language.ExpressionAst -> System.Management.Automation.Language.ParameterAst
Public Sub New (extent As IScriptExtent, name As VariableExpressionAst, attributes As IEnumerable(Of AttributeBaseAst), defaultValue As ExpressionAst)

Parameters

extent
IScriptExtent

The extent of the parameter, including the attributes and default if specified.

name
VariableExpressionAst

The name of the variable.

attributes
IEnumerable<AttributeBaseAst>

The attributes, or null if no attributes were specified.

defaultValue
ExpressionAst

The default value of the parameter, or null if no default value was specified.

Exceptions

If extent or name is null.

Applies to