SwitchParameter(Boolean) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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, false otherwise.