共用方式為


HMServiceGroup.RemoveService(HMService, Action<NSError>) 方法

定義

service從服務群組中移除,並在完成之後執行 completion

[Foundation.Export("removeService:completionHandler:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void RemoveService (HomeKit.HMService service, Action<Foundation.NSError> completion);
abstract member RemoveService : HomeKit.HMService * Action<Foundation.NSError> -> unit
override this.RemoveService : HomeKit.HMService * Action<Foundation.NSError> -> unit

參數

service
HMService
completion
Action<NSError>

在成功時傳 null 回的處理常式,或在失敗時傳回錯誤物件。

屬性

適用於