共用方式為


WiFiDirectServiceAdvertiser.CustomServiceStatusCode 屬性

定義

取得或設定自訂服務狀態碼。 只有在 ServiceStatus 屬性值為 Custom時才有效。

public:
 property unsigned int CustomServiceStatusCode { unsigned int get(); void set(unsigned int value); };
uint32_t CustomServiceStatusCode();

void CustomServiceStatusCode(uint32_t value);
public uint CustomServiceStatusCode { get; set; }
var uInt32 = wiFiDirectServiceAdvertiser.customServiceStatusCode;
wiFiDirectServiceAdvertiser.customServiceStatusCode = uInt32;
Public Property CustomServiceStatusCode As UInteger

屬性值

UInt32

unsigned int

uint32_t

如果 ServiceStatus 設定為 [自訂],則此屬性為自訂狀態值。 自訂值的範圍必須是 2 - 255。

適用於