SwitchParameter.Implicit Operator
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.
Overloads
Implicit(Boolean to SwitchParameter) |
Implicit cast operator for casting bool to SwitchParameter. |
Implicit(SwitchParameter to Boolean) |
Implicit cast operator for casting SwitchParameter to bool. |
Implicit(Boolean to SwitchParameter)
Implicit cast operator for casting bool to SwitchParameter.
public:
static operator System::Management::Automation::SwitchParameter(bool value);
public static implicit operator System.Management.Automation.SwitchParameter (bool value);
static member op_Implicit : bool -> System.Management.Automation.SwitchParameter
Public Shared Widening Operator CType (value As Boolean) As SwitchParameter
Parameters
- value
- Boolean
The bool to convert to SwitchParameter.
Returns
The corresponding boolean value.
Applies to
Implicit(SwitchParameter to Boolean)
Implicit cast operator for casting SwitchParameter to bool.
public:
static operator bool(System::Management::Automation::SwitchParameter switchParameter);
public static implicit operator bool (System.Management.Automation.SwitchParameter switchParameter);
static member op_Implicit : System.Management.Automation.SwitchParameter -> bool
Public Shared Widening Operator CType (switchParameter As SwitchParameter) As Boolean
Parameters
- switchParameter
- SwitchParameter
The SwitchParameter object to convert to bool.
Returns
The corresponding boolean value.