CancellationToken.Inequality(CancellationToken, CancellationToken) CancellationToken.Inequality(CancellationToken, CancellationToken) CancellationToken.Inequality(CancellationToken, CancellationToken) CancellationToken.Inequality(CancellationToken, CancellationToken) Operator

定义

确定两个 CancellationToken 实例是否不相等。Determines whether two CancellationToken instances are not equal.

public:
 static bool operator !=(System::Threading::CancellationToken left, System::Threading::CancellationToken right);
public static bool operator != (System.Threading.CancellationToken left, System.Threading.CancellationToken right);
static member op_Inequality : System.Threading.CancellationToken * System.Threading.CancellationToken -> bool
Public Shared Operator != (left As CancellationToken, right As CancellationToken) As Boolean

参数

left
CancellationToken CancellationToken CancellationToken CancellationToken

第一个实例。The first instance.

right
CancellationToken CancellationToken CancellationToken CancellationToken

第二个实例。The second instance.

返回

如果实例不相等,则为 true;否则为 falsetrue if the instances are not equal; otherwise, false.

异常

注解

有关相等的定义,请参阅 Equals 方法。For the definition of equality, see the Equals method.

适用于

另请参阅