AllJoynBusAttachmentState 枚举

定义

重要

Windows.Devices.AllJoyn 命名空间中的类型已弃用,将来的 Windows 版本中可能不可用。 AllJoyn(由 AllSeen Alliance 赞助)是一种开源发现和通信协议,适用于物联网 (IoT) 方案,例如开灯和关灯以及读取温度。 有关替代项(如 IoTivity LiteIoTivity),请参阅 iotivity.org 网站。

定义用于指示与 AllJoynBusAttachment 对象管理的 AllJoyn 总线的连接状态的值。

public enum class AllJoynBusAttachmentState
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class AllJoynBusAttachmentState
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Deprecated("AllJoynBusAttachmentState has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
enum class AllJoynBusAttachmentState
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum AllJoynBusAttachmentState
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Deprecated("AllJoynBusAttachmentState has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public enum AllJoynBusAttachmentState
var value = Windows.Devices.AllJoyn.AllJoynBusAttachmentState.disconnected
Public Enum AllJoynBusAttachmentState
继承
AllJoynBusAttachmentState
属性

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 中引入)
应用功能
allJoyn

字段

Connected 2

当前已连接到总线。

Connecting 1

连接到总线。

Disconnected 0

已与总线断开连接。

Disconnecting 3

当前正在断开与总线的连接。

适用于