CommandParameterInfo Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Provides information about a parameter for a particular parameter set.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

System.Object
  System.Management.Automation.CommandParameterInfo

public class CommandParameterInfo

NameDescription
System_CAPS_pubpropertyAliases

Gets the aliases specified for the parameter.

System_CAPS_pubpropertyAttributes

Gets the attributes that are specified for the parameter, such as alias and validation attributes.

System_CAPS_pubpropertyHelpMessage

Gets the Help message associated with the parameter.

System_CAPS_pubpropertyIsDynamic

Gets a Boolean value that indicates whether the parameter is a dynamic parameter that is added at runtime.

System_CAPS_pubpropertyIsMandatory

Gets a Boolean value that indicates whether the parameter is required.

System_CAPS_pubpropertyName

Gets the name of the parameter.

System_CAPS_pubpropertyParameterType

Gets the .NET Framework type of the parameter.

System_CAPS_pubpropertyPosition

Gets the position of the parameter.

System_CAPS_pubpropertyValueFromPipeline

Gets a Boolean value that indicates whether the parameter is filled from the pipeline object.

System_CAPS_pubpropertyValueFromPipelineByPropertyName

Gets a Boolean value that indicates whether the parameter is filled from a property of the piped-in object that has either the same name or the same alias as this parameter.

System_CAPS_pubpropertyValueFromRemainingArguments

Gets a Boolean value that indicates whether the parameter accepts all remaining arguments that are passed to the command.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

For more information about specifying cmdlet parameters, see Parameter Attribute Declaration.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

Community Additions

ADD
Show: