ConsoleKeyInfo.Inequality(ConsoleKeyInfo, ConsoleKeyInfo) ConsoleKeyInfo.Inequality(ConsoleKeyInfo, ConsoleKeyInfo) ConsoleKeyInfo.Inequality(ConsoleKeyInfo, ConsoleKeyInfo) ConsoleKeyInfo.Inequality(ConsoleKeyInfo, ConsoleKeyInfo) Operator

定義

指定した ConsoleKeyInfo オブジェクトが等しくないかどうかを示します。Indicates whether the specified ConsoleKeyInfo objects are not equal.

public:
 static bool operator !=(ConsoleKeyInfo a, ConsoleKeyInfo b);
public static bool operator != (ConsoleKeyInfo a, ConsoleKeyInfo b);
static member op_Inequality : ConsoleKeyInfo * ConsoleKeyInfo -> bool
Public Shared Operator != (a As ConsoleKeyInfo, b As ConsoleKeyInfo) As Boolean

パラメーター

a
ConsoleKeyInfo ConsoleKeyInfo ConsoleKeyInfo ConsoleKeyInfo

比較する最初のオブジェクト。The first object to compare.

b
ConsoleKeyInfo ConsoleKeyInfo ConsoleKeyInfo ConsoleKeyInfo

比較する 2 番目のオブジェクト。The second object to compare.

戻り値

truea と等しくない場合は b。それ以外の場合は falsetrue if a is not equal to b; otherwise, false.

注釈

2 つConsoleKeyInfoオブジェクトが等しい場合はそれに対応するKeyCharKey、およびModifiersプロパティが等しい。Two ConsoleKeyInfo objects are equal if their corresponding KeyChar, Key, and Modifiers properties are equal.

適用対象