CommonMessagePump.IVsCommonMessagePump.SetProgressInfo 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置消息的进度信息。
virtual int Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePump.SetProgressInfo(int iTotalSteps, int iCurrentStep, System::String ^ progressText) = Microsoft::VisualStudio::Shell::Interop::IVsCommonMessagePump::SetProgressInfo;
virtual int Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePump.SetProgressInfo(int iTotalSteps, int iCurrentStep, Platform::String ^ progressText) = Microsoft::VisualStudio::Shell::Interop::IVsCommonMessagePump::SetProgressInfo;
int Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePump.SetProgressInfo(int iTotalSteps, int iCurrentStep, std::wstring const & progressText);
int IVsCommonMessagePump.SetProgressInfo (int iTotalSteps, int iCurrentStep, string progressText);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePump.SetProgressInfo : int * int * string -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsCommonMessagePump.SetProgressInfo : int * int * string -> int
Function SetProgressInfo (iTotalSteps As Integer, iCurrentStep As Integer, progressText As String) As Integer Implements IVsCommonMessagePump.SetProgressInfo
参数
- iTotalSteps
- Int32
进度控制的步骤总数。
- iCurrentStep
- Int32
当前步骤。 一个介于1和之间的值 iTotalSteps 。
- progressText
- String
描述当前步骤。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。