SwitchParameter.Inequality Operator

Definition

Overloads

Inequality(Boolean, SwitchParameter)

Implement the != operator for bool and switch parameters

Inequality(SwitchParameter, Boolean)

Implement the != operator for switch parameters and booleans.

Inequality(SwitchParameter, SwitchParameter)

Implement the != operator for switch parameters

Inequality(Boolean, SwitchParameter)

Implement the != operator for bool and switch parameters

public:
 static bool operator !=(bool first, System::Management::Automation::SwitchParameter second);
public static bool operator != (bool first, System.Management.Automation.SwitchParameter second);
static member op_Inequality : bool * System.Management.Automation.SwitchParameter -> bool
Public Shared Operator != (first As Boolean, second As SwitchParameter) As Boolean

Parameters

first
Boolean

first object to compare

second
SwitchParameter

second object to compare

Returns

Boolean

True if they are different

Applies to

Inequality(SwitchParameter, Boolean)

Implement the != operator for switch parameters and booleans.

public:
 static bool operator !=(System::Management::Automation::SwitchParameter first, bool second);
public static bool operator != (System.Management.Automation.SwitchParameter first, bool second);
static member op_Inequality : System.Management.Automation.SwitchParameter * bool -> bool
Public Shared Operator != (first As SwitchParameter, second As Boolean) As Boolean

Parameters

first
SwitchParameter

first object to compare

second
Boolean

second object to compare

Returns

Boolean

True if they are different

Applies to

Inequality(SwitchParameter, SwitchParameter)

Implement the != operator for switch parameters

public:
 static bool operator !=(System::Management::Automation::SwitchParameter first, System::Management::Automation::SwitchParameter second);
public static bool operator != (System.Management.Automation.SwitchParameter first, System.Management.Automation.SwitchParameter second);
static member op_Inequality : System.Management.Automation.SwitchParameter * System.Management.Automation.SwitchParameter -> bool
Public Shared Operator != (first As SwitchParameter, second As SwitchParameter) As Boolean

Parameters

first
SwitchParameter

first object to compare

second
SwitchParameter

second object to compare

Returns

Boolean

True if they are different

Applies to