Share via


CommandParameterInfo Class

Definition

Provides information about a cmdlet parameter for a particular parameter set.

public ref class CommandParameterInfo
public class CommandParameterInfo
type CommandParameterInfo = class
Public Class CommandParameterInfo
Inheritance
CommandParameterInfo

Properties

Aliases

Gets the aliases by which this parameter can be referenced.

Attributes

Gets the attributes that are specified on the parameter.

HelpMessage

Gets the help message for this parameter.

IsDynamic

Gets whether or not the parameter is mandatory.

IsMandatory

Gets whether or not the parameter is a dynamic parameter.

Name

Gets the name of the parameter.

ParameterType

Gets the type of the parameter.

Position

Gets the position in which the parameter can be specified on the command line if not named. If the returned value is int.MinValue then the parameter must be named.

ValueFromPipeline

Gets whether the parameter can take values from the incoming pipeline object.

ValueFromPipelineByPropertyName

Gets whether the parameter can take values from a property inn the incoming pipeline object with the same name as the parameter.

ValueFromRemainingArguments

Gets whether the parameter will take any argument that isn't bound to another parameter.

Applies to