Bagikan melalui


HMHome.AddServiceGroupAsync(String) Metode

Definisi

Menambahkan grup layanan bernama serviceGroupName ke beranda dan berjalan completion setelah ditambahkan.

[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

Mengembalikan

Tugas yang mewakili operasi AddServiceGroup asinkron. Nilai parameter TResult berjenis System.Action<HomeKit.HMServiceGroup,Foundation.NSError>.

Atribut

Berlaku untuk