在 TFS 版本控制 SDK (Microsoft.TeamFoundation.VersionControl) 的上下文中,deletionID 到底是什么?

发布于 2024-08-31 06:49:40 字数 242 浏览 2 评论 0原文

在 TFS 版本控制 SDK (Microsoft.TeamFoundation.VersionControl) 的上下文中,deletionID 到底是什么?

它是 Microsoft.TeamFoundation.VersionControl.Client.Item 的属性。它也是 Microsoft.TeamFoundation.VersionControl.Client 上某些查询方法的参数。我试图弄清楚它到底意味着什么,以及它如何影响查询。

In the context of the TFS version control SDK (Microsoft.TeamFoundation.VersionControl), what exactly is deletionID?

It is a property of Microsoft.TeamFoundation.VersionControl.Client.Item. It is also a parameter to some of the query methods on Microsoft.TeamFoundation.VersionControl.Client. I'm trying to figure out exactly what it means, and how it might impact queries.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

静待花开 2024-09-07 06:49:40

我感受到你的痛苦,TFS API 文档非常糟糕。也就是说,这是我迄今为止猜测 DeletionID 的最佳尝试。

当 TFS 删除一个项目时,它实际上只是设置 DeletionID 并保留该项目。未删除的项目的 DeletionID 为 0。

某些方法接受 DeletionID 来引用先前删除的项目,例如,以防您想要取消删除它们。

I feel your pain, the TFS API documentation is atrocious. That said, here's my best attempt at guessing what DeletionID is so far.

When TFS deletes an item it really just sets the DeletionID and keeps the item around. Items that aren't deleted have a DeletionID of 0.

Some methods accept a DeletionID to refer to the items that were previously deleted, in case you wanted to undelete them, for example.

等风来 2024-09-07 06:49:40

tf 命令行实用程序的文档包括迄今为止我找到的 deletionId 的唯一官方文档:

引用自 取消删除命令

deletionID:指定消除多个歧义的唯一标识符
已删除同名项目。

The docs for the tf command line utility include the only official documentation of deletionId I've found so far:

Quoted from Undelete Command:

deletionID: Specifies a unique identifier that disambiguates multiple
deleted items with the same name.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文