SwitchParameter(Boolean) Constructor

Definition

Construct a SwitchParameter instance with a particular value.

public:
 SwitchParameter(bool isPresent);
public:
 SwitchParameter(bool isPresent);
 SwitchParameter(bool isPresent);
public SwitchParameter (bool isPresent);
new System.Management.Automation.SwitchParameter : bool -> System.Management.Automation.SwitchParameter
Public Sub New (isPresent As Boolean)

Parameters

isPresent
Boolean

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

Applies to