HMHome.AddRoomAsync(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将名为 roomName
的会议室添加到主页,并在添加后运行 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<HomeKit.HMRoom> AddRoomAsync (string roomName);
abstract member AddRoomAsync : string -> System.Threading.Tasks.Task<HomeKit.HMRoom>
override this.AddRoomAsync : string -> System.Threading.Tasks.Task<HomeKit.HMRoom>
参数
- roomName
- String
返回
表示异步 AddRoom 操作的任务。 TResult 参数的值的类型为 System.Action<HomeKit.HMRoom,Foundation.NSError>。
- 属性