CancellationTokenRegistration.Equality 运算符

定义

确定两个 CancellationTokenRegistration 实例是否相等。

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

参数

left
CancellationTokenRegistration

第一个实例。

right
CancellationTokenRegistration

第二个实例。

返回

Boolean

如果实例相等,则为 true;否则为 false

适用于

另请参阅