共用方式為


BackgroundWorker.WorkerReportsProgress 屬性

定義

會取得或設定一個值,表示是否 BackgroundWorker 能回報進度更新。

public:
 property bool WorkerReportsProgress { bool get(); void set(bool value); };
public bool WorkerReportsProgress { get; set; }
member this.WorkerReportsProgress : bool with get, set
Public Property WorkerReportsProgress As Boolean

屬性值

true 若支援進度 BackgroundWorker 更新;否則 false。 預設值為 false

備註

如果你想BackgroundWorker支援進度更新,就把屬性設WorkerReportsProgresstrue 當此屬性為 true時,使用者程式碼可呼叫 ReportProgress 該方法來引發 ProgressChanged 事件。

適用於

另請參閱