私の目的は、WorkItems の親子リンクタイプのリンク関係を取得することです。
165 秒を処理するのに90WorkItem
秒かかり、Microsoft のチーム エクスプローラーは3 秒だけを使用して同じ結果を表示します。
foreach (WorkItem wi in wic) //165 count,and takes 90s to process
{
foreach(WorkItemLink wil in wi.WorkItemLinks) //I only need Parent and Child linktype
{
string linktype = wil.LinkTypeEnd.Name.ToString();
if (linktype == "Parent")
{
//some;
}
else if (linktype == "Child")
{
//some;
}
}
}