SwitchParameter.IsPresent Property

Definition

Returns true if the parameter was specified on the command line, false otherwise.

C++
public:
 property bool IsPresent { bool get(); };

Property Value

True if the parameter was specified, false otherwise

Applies to

Prodotto Versioni
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0