WiFiDirectServiceStatus 枚举

定义

用于描述服务状态的值。

public enum class WiFiDirectServiceStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class WiFiDirectServiceStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum WiFiDirectServiceStatus
var value = Windows.Devices.WiFiDirect.Services.WiFiDirectServiceStatus.available
Public Enum WiFiDirectServiceStatus
继承
WiFiDirectServiceStatus
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

字段

Available 0

该服务可用。

Busy 1

该服务当前不接受连接。

Custom 2

服务返回服务定义的自定义状态值。 从 WiFiDirectServiceAdvertiser.CustomServiceStatusCode 属性获取状态值。

适用于