次の方法で共有


FunctionDefinitionAst.Parameters Property

Definition

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)

Property Value

Applies to