问题描述
使用 TFS C# API,是否可以以编程方式打开标签对话框窗口?理想情况下,我希望能够通过名称和范围调用标签,然后弹出以下内容:标签对话框
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
我使用的是 TFS 2013,我的应用程序是一个独立的应用程序.
I am using TFS 2013, and my application is a standalone one.
推荐答案
您需要使用 VersionControlLabelExt 类在一个 VS 插件项目中.使用 VersionControlLabelExt.OpenLabel 方法,您将打开一个新的标签文档窗口,给出标签的名称、范围和所有者.
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.
在此链接中查看 Grant 的回复,以获取有关如何开始的快速参考:
Check Grant's reply in this link for a quick reference on how to get started:
如何使用 Visual Studio 加载项打开 TFS 变更集详细信息对话框视图?
这篇关于TFS API - 以编程方式显示标签对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!