編輯

共用方式為


Cmdlet Parameters

Cmdlet parameters provide the mechanism that allows a cmdlet to accept input. Parameters can accept input directly from the command line, or from objects passed to the cmdlet through the pipeline, The arguments (also known as values) of these parameters can specify the input that the cmdlet accepts, how the cmdlet should perform its actions, and the data that the cmdlet returns to the pipeline.

In This Section

Declaring Properties as Parameters Provides basic information you must understand before you declare the parameters of a cmdlet.

Types of Cmdlet Parameters Describes the different types of parameters that you can declare in cmdlets.

Cmdlet Parameter Name and Functionality Guidelines Discusses the names, recommended data type, and functionality of standard parameters.

Parameter Aliases Discusses the aliases that you can define for parameters.

Common Parameter Names This topic describes the parameters that Windows PowerShell adds to cmdlets.

Cmdlet Parameter Sets Discusses how parameter sets enable you to write a single cmdlet that can perform different actions for different scenarios.

Cmdlet Dynamic Parameters Discusses parameters that are available to the user under special conditions.

Supporting Wildcard Characters in Cmdlet Parameters Describes how to provide support for wildcard characters when you design a cmdlet that will be run against a group of resources.

Validating Parameter Input Describes how Windows PowerShell validates the arguments passed to cmdlet parameters.

Input Filter Parameters Discusses the Filter, Include, and Exclude parameters that filter the set of input objects that the cmdlet affects.

How to Validate Parameter Input

See Also

Parameter Attribute Declaration

Windows PowerShell Cmdlets