c# - How to retrieve the TFS queries of a user? -
similar question : how can retrieve list of workitems tfs in c#?
but trying retrieve queries (not workitems) of user (to call them later, that's topic). possible c# ?
also, related, there documentation anywhere tables used in workitemstore.query object ?
sorry if has been asked before, googling tfs , queries returns lot of unwanted results (obviously).
thanks !
aaaaaaaaaaaand, looking 5 minutes namespace have saved me writing yet useless question. answer if ever interested :
tfsteamprojectcollection tfs = new tfsteamprojectcollection(new uri("uri")); tfs.ensureauthenticated(); workitemstore workitemstore = tfs.getservice<workitemstore>(); queryhierarchyprovider queryprovider = new queryhierarchyprovider(workitemstore); project project = workitemstore.projects["myproject"]; var queries = queryprovider.getqueryhierarchy(project);
Comments
Post a Comment