Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemManager.UpdateWorkItems C# (CSharp) Method

UpdateWorkItems() public method

public UpdateWorkItems ( int changeSet, WorkItemCheckinAction>.Dictionary workItems, string comment ) : void
changeSet int
workItems WorkItemCheckinAction>.Dictionary
comment string
return void
        public void UpdateWorkItems(int changeSet, Dictionary<int, WorkItemCheckinAction> workItems, string comment)
        {
            foreach (var workItem in workItems)
            {
                switch (workItem.Value)
                {
                    case WorkItemCheckinAction.Associate:
                        this.clientService.Associate(workItem.Key, changeSet, comment);
                        break;
                    case WorkItemCheckinAction.Resolve:
                        this.clientService.Resolve(workItem.Key, changeSet, comment);
                        break;
                    default:
                        break;
                }
            }
        }
    }