SwitchParameter.Inequality 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
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
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
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
True if they are different.