次の方法で共有


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 操作を表すタスク

属性

適用対象