SwitchParameter.ToBool Method

Definition

Explicit method to convert a SwitchParameter to a boolean value.

C++
public:
 bool ToBool();

Returns

The boolean equivalent of the SwitchParameter.

Applies to

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