Прочитај на енглеском

Делите путем


SwitchParameter(Boolean) Constructor

Definition

Construct a SwitchParameter instance with a particular value.

C++
public:
 SwitchParameter(bool isPresent);

Parameters

isPresent
Boolean

If true, it indicates that the switch is present, false otherwise.

Applies to

Производ Верзије
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0