HMHome.AddServiceGroupAsync(String) Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
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