Compartilhar via


SwitchParameter.Equality Operator

Definition

Overloads

Equality(Boolean, SwitchParameter)

Implement the == operator for bool and switch parameters.

Equality(SwitchParameter, Boolean)

Implement the == operator for switch parameters and booleans.

Equality(SwitchParameter, SwitchParameter)

Implement the == operator for switch parameters objects.

Equality(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 ( = ) : 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 the same.

Applies to

Equality(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 ( = ) : 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 the same.

Applies to

Equality(SwitchParameter, SwitchParameter)

Implement the == operator for switch parameters objects.

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 ( = ) : 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 the same.

Applies to