TFS 2010 work item - Work item links
问题 When a user opens a bug from a test case, I need to check if the test case is linked to a requirement item and if so I need to link the bug to the requirement item. How can I know this information? I use following piece of code: WorkItemLinkCollection links = _workItem.WorkItemLinks; foreach (WorkItemLink link in links) { } but I don't know how to get the link type and link id. 回答1: WorkItemLink is an abstract base class. ExternalLink, HyperLink, and RelatedLink inherit from it so the link