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 设置为 Custom,则此属性为自定义状态值。 自定义值必须在 2 - 255 范围内。

适用于