Partager via


RelatedLink Class

Links two work item objects in the same work item store and across stores.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.WorkItemTracking.Client.Link
    Microsoft.TeamFoundation.WorkItemTracking.Client.RelatedLink

Namespace:  Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly:  Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)

Syntax

'Declaration
Public Class RelatedLink _
    Inherits Link
public class RelatedLink : Link
public ref class RelatedLink : public Link
type RelatedLink =  
    class 
        inherit Link 
    end
public class RelatedLink extends Link

The RelatedLink type exposes the following members.

Constructors

  Name Description
Public method RelatedLink(Int32) Initializes a new RelatedLink instance.
Public method RelatedLink(WorkItemLinkTypeEnd, Int32) Initializes a new RelatedLink instance.

Top

Properties

  Name Description
Public property ArtifactLinkType Gets the artifact link type of this link. (Overrides Link.ArtifactLinkType.)
Public property BaseType Gets the base type of this link. (Overrides Link.BaseType.)
Public property Comment Gets or sets the comment that is associated with this link. (Overrides Link.Comment.)
Public property IsLocked Gets or sets a flag that describes the locked status of this link. (Overrides Link.IsLocked.)
Public property IsNew Gets or sets a flag that describes whether this link is new. (Overrides Link.IsNew.)
Public property LinkTypeEnd Gets the work item link type end that is associated with this link.
Public property RelatedWorkItemId Gets the related work item ID of this link.

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace