AllJoynSessionLostEventArgs(AllJoynSessionLostReason) 构造函数

定义

重要

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

生成一个 AllJoynSessionLostEventArgs 对象,其中包含标识会话丢失原因的信息。

public:
 AllJoynSessionLostEventArgs(AllJoynSessionLostReason reason);
 AllJoynSessionLostEventArgs(AllJoynSessionLostReason const& reason);
/// [Windows.Foundation.Metadata.Deprecated("AllJoynSessionLostEventArgs has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
 AllJoynSessionLostEventArgs(AllJoynSessionLostReason const& reason);
public AllJoynSessionLostEventArgs(AllJoynSessionLostReason reason);
[Windows.Foundation.Metadata.Deprecated("AllJoynSessionLostEventArgs has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public AllJoynSessionLostEventArgs(AllJoynSessionLostReason reason);
function AllJoynSessionLostEventArgs(reason)
Public Sub New (reason As AllJoynSessionLostReason)

参数

reason
AllJoynSessionLostReason

会话丢失的原因。

属性

Windows 要求

应用功能
allJoyn

适用于