HMHome.RemoveUser(HMUser, Action<NSError>) 方法

定义

从主目录中删除由 userID 指定的用户,并在完成后运行 completion

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, "This API in now prohibited on iOS. Use 'ManageUsers' instead.")]
[ObjCRuntime.NoTV]
[ObjCRuntime.NoWatch]
[ObjCRuntime.Obsoleted(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, "This API in now prohibited on iOS. Use 'ManageUsers' instead.")]
public virtual void RemoveUser (HomeKit.HMUser user, Action<Foundation.NSError> completion);
abstract member RemoveUser : HomeKit.HMUser * Action<Foundation.NSError> -> unit
override this.RemoveUser : HomeKit.HMUser * Action<Foundation.NSError> -> unit

参数

user
HMUser
completion
Action<NSError>

一个在成功时返回的 null 处理程序,或在失败时返回错误对象。

属性

适用于