FunctionDefinitionAst.Parameters Property
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.
The parameters specified immediately after the function name, or null if no parameters were specified.
It is possible that this property may have a value and ParamBlock to also have a value. Normally this is not allowed in a valid script, but in one rare case it is allowed:
function foo() { param($a) }
In this example, the parameters specified after the function name must be empty or the script is not valid.
public:
property System::Collections::ObjectModel::ReadOnlyCollection<System::Management::Automation::Language::ParameterAst ^> ^ Parameters { System::Collections::ObjectModel::ReadOnlyCollection<System::Management::Automation::Language::ParameterAst ^> ^ get(); };
public System.Collections.ObjectModel.ReadOnlyCollection<System.Management.Automation.Language.ParameterAst> Parameters { get; }
member this.Parameters : System.Collections.ObjectModel.ReadOnlyCollection<System.Management.Automation.Language.ParameterAst>
Public ReadOnly Property Parameters As ReadOnlyCollection(Of ParameterAst)