Links two WorkItems in the same WorkItemStore.
Inheritance Hierarchy
System.Object
  Microsoft.TeamFoundation.WorkItemTracking.Client.Link
    Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemLink
Namespace:  Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly:  Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)
Syntax
声明
Public Class WorkItemLink _
    Inherits Link
public class WorkItemLink : Link
public ref class WorkItemLink : public Link
type WorkItemLink =  
    class
        inherit Link
    end
public class WorkItemLink extends Link
The WorkItemLink type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | WorkItemLink(WorkItemLinkTypeEnd) | Initializes a new instance of the WorkItemLink class from the specified WorkItemLinkTypeEnd. | 
| .gif) | WorkItemLink(WorkItemLinkTypeEnd, Int32) | Initializes a new instance of the WorkItemLink class from the specified WorkItemLinkTypeEnd and target ID. | 
| .gif) | WorkItemLink(WorkItemLinkTypeEnd, Int32, Int32) | Initializes a new instance of the WorkItemLink class from the specified WorkItemLinkTypeEnd, source ID, and target ID. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | AddedBy | Gets the name of the user who created this link. | 
| .gif) | AddedDate | Gets the time, in local time, that this link was added. | 
| .gif) | AddedDateUtc | Gets the time, in UTC, that this link was added. | 
| .gif) | ArtifactLinkType | Gets the artifact link type of this link. (Overrides Link.ArtifactLinkType.) | 
| .gif) | BaseType | Gets the base type of this link. (Overrides Link.BaseType.) | 
| .gif) | Comment | Gets or sets a description of this link. (Overrides Link.Comment.) | 
| .gif) | IsLocked | Gets a flag that describes whether this link is locked. (Overrides Link.IsLocked.) | 
| .gif) | IsNew | Gets or sets a flag that describes whether this link is new. (Overrides Link.IsNew.) | 
| .gif) | LinkTypeEnd | Gets the link type end of this link. | 
| .gif) | RemovedBy | Gets the name of the user who removed this link. | 
| .gif) | RemovedDate | Gets the time, in local time, that this link was removed. | 
| .gif) | RemovedDateUtc | Gets the time, in UTC, that this link was removed. | 
| .gif) | SourceId | Gets or sets the ID of the source WorkItem of this link. | 
| .gif) | TargetId | Gets or sets the ID of the target WorkItem of this link. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | 
| .gif) | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | 
| .gif) | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | 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.