Partilhar via


SwitchParameter.Implicit Operator

Definition

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.

Applies to