ActivityTraceId.Equality(ActivityTraceId, ActivityTraceId) 运算符

定义

确定两个指定的 ActivityTraceId 实例是否具有相同的值。

public:
 static bool operator ==(System::Diagnostics::ActivityTraceId traceId1, System::Diagnostics::ActivityTraceId traceId2);
public static bool operator == (System.Diagnostics.ActivityTraceId traceId1, System.Diagnostics.ActivityTraceId traceId2);
static member ( = ) : System.Diagnostics.ActivityTraceId * System.Diagnostics.ActivityTraceId -> bool
Public Shared Operator == (traceId1 As ActivityTraceId, traceId2 As ActivityTraceId) As Boolean

参数

traceId1
ActivityTraceId

要比较的第一个实例。

traceId2
ActivityTraceId

要比较的第二个实例。

返回

如果 traceId1 的 TraceId 与 traceId2 的 TraceId 相同,则为 true;否则为 false

适用于