共用方式為


WiFiDirectServiceAdvertiser.ServiceStatus 屬性

定義

取得或設定服務狀態。

public:
 property WiFiDirectServiceStatus ServiceStatus { WiFiDirectServiceStatus get(); void set(WiFiDirectServiceStatus value); };
WiFiDirectServiceStatus ServiceStatus();

void ServiceStatus(WiFiDirectServiceStatus value);
public WiFiDirectServiceStatus ServiceStatus { get; set; }
var wiFiDirectServiceStatus = wiFiDirectServiceAdvertiser.serviceStatus;
wiFiDirectServiceAdvertiser.serviceStatus = wiFiDirectServiceStatus;
Public Property ServiceStatus As WiFiDirectServiceStatus

屬性值

對應至服務狀態的列舉值。 請注意,如果此值為 Custom則 CustomServiceStatusCode 屬性會提供實際的自訂狀態碼值。

適用於