2.2.3.23 ParameterMetadata

This data type specifies the metadata of a command parameter (see also section 2.2.3.13).

ParameterMetadata is an object with the following extended properties (see section 2.2.5.2.9):

  • The name of a parameter.

    • Property name: Name.

    • Property type: a non-empty String (see section 2.2.5.1.1).

  • The type of the parameter.

    • Property name: ParameterType.

    • Property type: String (see section 2.2.5.1.1) representing a type name (see section 2.2.5.2.3).

  • Alternative names of the parameter

    • Property name: Aliases.

    • Property type: List (see section 2.2.5.2.6.3) of Strings (see section 2.2.5.1.1).

  • The SwitchParameter property is True if ParameterType is equal to "System.Management.Automation.SwitchParameter" and False otherwise.

    • Property name: SwitchParameter.

    • Property type: Bool (see section 2.2.5.1.3).

  • True if this parameter is included as a consequence of the data specified in the ArgumentList property (section 2.2.3.24).

    • Property name: IsDynamic

    • Property type: Bool (see section 2.2.5.1.3).

The Complex Object described in this section SHOULD have the following type names (section 2.2.5.2.3):

  • System.Management.Automation.ParameterMetadata

  • System.Object