ParameterAst Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.