共用方式為


UITableView.PerformBatchUpdatesAsync(Action) 方法

定義

套用 並同時產生 多個 操作的 UITableView 動畫。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<bool> PerformBatchUpdatesAsync (Action updates);
abstract member PerformBatchUpdatesAsync : Action -> System.Threading.Tasks.Task<bool>
override this.PerformBatchUpdatesAsync : Action -> System.Threading.Tasks.Task<bool>

參數

updates
Action

要執行的更新。此參數可以是 。

傳回

表示非同步 PerformBatchUpdates 作業的工作。 TResult 參數的值的類型為 System.Action < System.Boolean > 。

屬性

備註

PerformBatchUpdatesAsync 方法適合搭配 C# 非同步使用,方法是將控制項傳回給代表作業之 Task 的呼叫端。

即將加入。

適用於