TFS API - 以编程方式显示标签对话框 [英] TFS API - Display Label dialog programmatically

查看:38
本文介绍了TFS API - 以编程方式显示标签对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 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 - 以编程方式显示标签对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆