TFS API - Display Label dialog programmatically

杀马特。学长 韩版系。学妹 提交于 2019-12-24 15:12:03

问题


Using TFS C# API, is it possible to open a label dialog window programmatically? Ideally, I would like to be able to call a label by its name and scope, then have the following pop up: Label Dialog Box

I am using TFS 2013, and my application is a standalone one.


回答1:


You need to work with VersionControlLabelExt class in one VS Addin project. With the VersionControlLabelExt.OpenLabel Method, you will open a new label document window, given the name, scope, and owner of the label.

Check Grant's reply in this link for a quick reference on how to get started:

How can I open the TFS changeset details dialog view using a Visual Studio add-in?



来源:https://stackoverflow.com/questions/33111448/tfs-api-display-label-dialog-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!