共用方式為


WiFiDirectConnectionStatus 列舉

定義

描述 WiFiDirectDevice 物件的線上狀態。

public enum class WiFiDirectConnectionStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class WiFiDirectConnectionStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum WiFiDirectConnectionStatus
var value = Windows.Devices.WiFiDirect.WiFiDirectConnectionStatus.disconnected
Public Enum WiFiDirectConnectionStatus
繼承
WiFiDirectConnectionStatus
屬性

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 引進)

欄位

Connected 1

裝置會連線到相關聯的 Wi-Fi Direct 裝置。

Disconnected 0

裝置未連線。

適用於

另請參閱