共用方式為


HMActionSet.RemoveActionAsync(HMAction) 方法

定義

action從動作集移除,並在動作集完成之後執行 completion

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task RemoveActionAsync (HomeKit.HMAction action);
abstract member RemoveActionAsync : HomeKit.HMAction -> System.Threading.Tasks.Task
override this.RemoveActionAsync : HomeKit.HMAction -> System.Threading.Tasks.Task

參數

action
HMAction

傳回

表示非同步 RemoveAction 作業的工作

屬性

備註

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

即將加入。

適用於