Compartilhar via


KeyInfo.Inequality(KeyInfo, KeyInfo) Operator

Definition

Compares two instances for inequality.

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

Parameters

first
KeyInfo

The left side operand.

second
KeyInfo

The right side operand.

Returns

true if any of the respective Character, ControlKeyStates , KeyDown, or VirtualKeyCode fields are the different, false otherwise.

Applies to