Modifier

Partager via


ActivityLink.Equals Method

Definition

Overloads

Equals(ActivityLink)

Indicates whether the current activity link is equal to another activity link.

Equals(Object)

Indicates whether the current activity link is equal to another object.

Source:
ActivityLink.cs
Source:
ActivityLink.cs
Source:
ActivityLink.cs

Indicates whether the current activity link is equal to another activity link.

public:
 virtual bool Equals(System::Diagnostics::ActivityLink value);
public bool Equals (System.Diagnostics.ActivityLink value);
override this.Equals : System.Diagnostics.ActivityLink -> bool
Public Function Equals (value As ActivityLink) As Boolean

Parameters

value
ActivityLink

The activity link to compare.

Returns

true if the current activity link is equal to other; otherwise, false.

Implements

Remarks

ActivityLink equality is currently undefined. The current behavior is that two ActivityLink instances with the same ActivityContext and no tags will return true for Equals(ActivityLink). Prior to .NET 7, ActivityLink instances sharing an ActivityTagsCollection instance and the same ActivityContext would return true for Equals(ActivityLink). Starting from .NET 7, Equals(ActivityLink) will always return false when tags are used. This may change in the future. Exercise caution in calling this method.

Applies to

Source:
ActivityLink.cs
Source:
ActivityLink.cs
Source:
ActivityLink.cs

Indicates whether the current activity link is equal to another object.

public:
 override bool Equals(System::Object ^ obj);
public override bool Equals (object? obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

Parameters

obj
Object

The object to compare.

Returns

true if the current activity link is equal to obj; otherwise, false.

Remarks

ActivityLink equality is currently undefined. The current behavior is that two ActivityLink instances with the same ActivityContext and no tags will return true for Equals(Object). Prior to .NET 7, ActivityLink instances sharing an ActivityTagsCollection instance and the same ActivityContext would return true for Equals(Object). Starting in .NET 7, Equals(Object) always returns false when tags are used.

Applies to