# CounterSample.Inequality(CounterSample, CounterSample) 演算子

## 定義

2 つの CounterSample 構造体が等しくないかどうかを示す値を返します。Returns a value that indicates whether two CounterSample structures are not equal.

public:
static bool operator !=(System::Diagnostics::CounterSample a, System::Diagnostics::CounterSample b);
public:
static bool operator !=(System::Diagnostics::CounterSample obj1, System::Diagnostics::CounterSample obj2);
public static bool operator != (System.Diagnostics.CounterSample a, System.Diagnostics.CounterSample b);
public static bool operator != (System.Diagnostics.CounterSample obj1, System.Diagnostics.CounterSample obj2);
static member op_Inequality : System.Diagnostics.CounterSample * System.Diagnostics.CounterSample -> bool
static member op_Inequality : System.Diagnostics.CounterSample * System.Diagnostics.CounterSample -> bool
Public Shared Operator != (a As CounterSample, b As CounterSample) As Boolean
Public Shared Operator != (obj1 As CounterSample, obj2 As CounterSample) As Boolean

#### パラメーター

aobj1
CounterSample

A CounterSample structure.

bobj2
CounterSample

a パラメーターで指定された構造体と比較する別の CounterSample 構造体。Another CounterSample structure to be compared to the structure specified by the a parameter.

#### 戻り値

Boolean

ab が等しくない場合は true。それ以外の場合は falsetrue if a and b are not equal; otherwise, false

## 注釈

CounterSampleプロパティ値が異なる場合、2つの構造体は等しくありません。Two CounterSample structures are not equal if any of their property values are different.

この演算子の同等のメソッドは CounterSample.Equals(CounterSample) です。The equivalent method for this operator is CounterSample.Equals(CounterSample).