当 Stsadm 命令通过对象模型时 Getpercentage 完成
我正在通过 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为 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