ActivityTraceId.Equality(ActivityTraceId, ActivityTraceId) 运算符
定义
确定两个指定的 ActivityTraceId 实例是否具有相同的值。Determines whether two specified ActivityTraceId instances have the same value.
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
要比较的第一个实例。The first instance to compare.
- traceId2
- ActivityTraceId
要比较的第二个实例。The second instance to compare.
返回
如果 traceId1
的 TraceId 与 traceId2
的 TraceId 相同,则为 true
;否则为 false
。true
if the TraceId of traceId1
is the same as the TraceId of traceId2
; otherwise, false
.