Freigeben über


HMHome.AddServiceGroupAsync(String) Methode

Definition

Fügt der Startseite eine Dienstgruppe mit dem Namen serviceGroupName hinzu und wird ausgeführt completion , nachdem sie hinzugefügt wurde.

[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.HMServiceGroup> AddServiceGroupAsync (string serviceGroupName);
abstract member AddServiceGroupAsync : string -> System.Threading.Tasks.Task<HomeKit.HMServiceGroup>
override this.AddServiceGroupAsync : string -> System.Threading.Tasks.Task<HomeKit.HMServiceGroup>

Parameter

serviceGroupName
String

Gibt zurück

Eine Aufgabe, die den asynchronen AddServiceGroup-Vorgang darstellt. Der Wert des TResult-Parameters ist vom Typ System.Action<HomeKit.HMServiceGroup,Foundation.NSError>.

Attribute

Gilt für: