Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 TFS sdk 获取链接到 tfs 工作项的超链接名称列表。
目前我只能看到 1 个属性 HyperLinkCount,它只是让我知道超链接的数量。
您需要Links使用WorkItem.
Links
WorkItem
类型的链接Microsoft.TeamFoundation.WorkItemTracking.Client.Hyperlink是你所追求的,你可以像这样得到它们:
Microsoft.TeamFoundation.WorkItemTracking.Client.Hyperlink
var hyperLinks = workItemStore .GetWorkItem(12345) .Links .OfType<Hyperlink>();