CommonMessagePump.IVsCommonMessagePump.SetProgressInfo 方法

设置消息的进度信息。

命名空间:  Microsoft.VisualStudio.Shell
程序集:  Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)

语法

声明
Private Function SetProgressInfo ( _
    iTotalSteps As Integer, _
    iCurrentStep As Integer, _
    progressText As String _
) As Integer Implements IVsCommonMessagePump.SetProgressInfo
int IVsCommonMessagePump.SetProgressInfo(
    int iTotalSteps,
    int iCurrentStep,
    string progressText
)

参数

  • iTotalSteps
    类型:System.Int32
    步骤的总数进度的。
  • iCurrentStep
    类型:System.Int32
    当前阶跃。在 1 之间的值和 iTotalSteps。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

实现

IVsCommonMessagePump.SetProgressInfo(Int32, Int32, String)

.NET Framework 安全性

请参见

参考

CommonMessagePump 类

Microsoft.VisualStudio.Shell 命名空间