共用方式為


HMHome.AssignAccessoryAsync(HMAccessory, HMRoom) 方法

定義

accessoryroom 指派並執行 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 AssignAccessoryAsync (HomeKit.HMAccessory accessory, HomeKit.HMRoom room);
abstract member AssignAccessoryAsync : HomeKit.HMAccessory * HomeKit.HMRoom -> System.Threading.Tasks.Task
override this.AssignAccessoryAsync : HomeKit.HMAccessory * HomeKit.HMRoom -> System.Threading.Tasks.Task

參數

accessory
HMAccessory
room
HMRoom

傳回

表示非同步 AssignAccessory 作業的工作

屬性

適用於