Sdílet prostřednictvím


KeyInfo.Equality(KeyInfo, KeyInfo) Operator

Definition

Compares two instances for equality.

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 ( = ) : 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 the respective Character, ControlKeyStates , KeyDown, and VirtualKeyCode fields are the same, false otherwise.

Applies to