Partilhar via


HMServiceGroup.RemoveService(HMService, Action<NSError>) Método

Definição

Remove do grupo de serviços service e é executado completion após a conclusão.

[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

Parâmetros

service
HMService
completion
Action<NSError>

Um manipulador que retorna null com êxito ou um objeto de erro em caso de falha.

Atributos

Aplica-se a