Bagikan melalui


CancellationToken.Inequality(CancellationToken, CancellationToken) Operator

Definisi

Menentukan apakah dua CancellationToken instans tidak sama.

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

Parameter

left
CancellationToken

Instans pertama.

right
CancellationToken

Instans kedua.

Mengembalikan

true jika instans tidak sama; jika tidak, false.

Pengecualian

Yang terkait CancellationTokenSource telah dibuang.

Keterangan

Untuk definisi kesetaraan, lihat Equals metode .

Berlaku untuk

Lihat juga