语言中文
  • C#

Progress.Remove

声明

public static int Remove(int id);

声明

public static int Remove(int id, bool forceSynchronous);

参数

id 进度指示器的唯一 ID。
forceSynchronous 将此参数设置为 true 时,它将强制此方法同步删除进度指示器。

返回值

如果进度指示器被移除,则返回 int -1。否则,返回进度指示器的 ID。

描述

完成并移除活动的进度指示器。

除非该进度指示器是同步的(请参见Synchronous),否则该进度指示器将在下一次应用程序标记时被移除。若要强制此方法同步移除进度指示器,请将“forceSynchronous”参数设置为 true。


Did you find this page useful? Please give it a rating: