共用方式為


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 回的處理常式,或在失敗時傳回錯誤物件。

屬性

適用於