共用方式為


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

適用於