ActivityTraceId.Equals 方法
定义
重载
Equals(ActivityTraceId) |
确定当前实例与指定的 ActivityTraceId 是否相等。Determines whether the current instance and a specified ActivityTraceId are equal. |
Equals(Object) |
确定此实例是否与指定的对象(也必须是 ActivityTraceId 实例)具有相同的值。Determines whether this instance and a specified object, which must also be an ActivityTraceId instance, have the same value. |
Equals(ActivityTraceId)
确定当前实例与指定的 ActivityTraceId 是否相等。Determines whether the current instance and a specified ActivityTraceId are equal.
public:
virtual bool Equals(System::Diagnostics::ActivityTraceId traceId);
public bool Equals (System.Diagnostics.ActivityTraceId traceId);
override this.Equals : System.Diagnostics.ActivityTraceId -> bool
Public Function Equals (traceId As ActivityTraceId) As Boolean
参数
- traceId
- ActivityTraceId
要比较的实例。The instance to compare.
返回
如果 traceId
与当前实例含有相同的十六进制值,则为 true
;否则为 false
。true
if traceId
has the same hex value as the current instance; otherwise, false
.
实现
适用于
Equals(Object)
确定此实例是否与指定的对象(也必须是 ActivityTraceId 实例)具有相同的值。Determines whether this instance and a specified object, which must also be an ActivityTraceId instance, have the same value.
public:
override bool Equals(System::Object ^ obj);
public override bool Equals (object? obj);
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean
参数
- obj
- Object
要比较的对象。The object to compare.
返回
如果 obj
是 ActivityTraceId 的实例,且与当前实例具有相同的十六进制值,则为 true
;否则为 false
。true
if obj
is an instance of ActivityTraceId and has the same hex value as the current instance; otherwise, false
.