当 Stsadm 命令通过对象模型时 Getpercentage 完成

发布于 2024-10-06 15:41:33 字数 146 浏览 0 评论 0原文

我正在通过 C# 代码使用 stsadm -addcontentdb 命令将 moss contentdb 添加到 sharepoint 2010 Web 应用程序。几分钟后,它成功添加。但我需要在添加 contentdb 时显示完成百分比(进度条)。我怎样才能获得百分比价值。

I am adding moss contentdb to sharepoint 2010 web application using stsadm -addcontentdb command via c# code.after few minutes it successfully adding.but i need to show the percentage completion (Progress bar) at the time adding contentdb.How can I get the percentage value.

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

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

发布评论

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

评论(1

z祗昰~ 2024-10-13 15:41:33

我认为 sharepoint 不会为这些操作公开此类计数器。作为替代方案,您可以做的是,如果这是一个 Web 应用程序,您可以使用 sharepoint API 显示标准 sharepoint 进度指示器:

http://blogs.msdn.com/b/sumanc/archive /2009/01/25/how-do-i-create-a-long-running-operation-page-gears-page.aspx

I don't think sharepoint exposes such counters for these operations. As an alternative, what you can do is, if this is a web application, you can display standard sharepoint progess indicator using sharepoint API:

http://blogs.msdn.com/b/sumanc/archive/2009/01/25/how-do-i-create-a-long-running-operation-page-gears-page.aspx

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