HMZone.AddRoomAsync(HMRoom) 方法

定义

添加到 room 区域,并在完成后运行 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 AddRoomAsync (HomeKit.HMRoom room);
abstract member AddRoomAsync : HomeKit.HMRoom -> System.Threading.Tasks.Task
override this.AddRoomAsync : HomeKit.HMRoom -> System.Threading.Tasks.Task

参数

room
HMRoom

返回

表示异步 AddRoom 操作的任务

属性

适用于