AllJoynSession.Lost 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
重要
Windows.Devices.AllJoyn命名空間中的類型已被取代,未來版本的 Windows 可能無法使用。 AllJoyn是 AllSeen 聯盟贊助的開放原始碼探索和通訊協定,適用于物聯網 (IoT) 案例,例如開啟和關閉燈光,以及讀取溫度。 如需 IoTivity Lite 和 IoTivity等替代方案,請參閱 iotivity.org 網站。
AllJoynSession遺失時所觸發的事件。 您可以在相關聯的 AllJoynSessionLostEventArgs中找到事件的詳細資訊。
// Register
event_token Lost(TypedEventHandler<AllJoynSession, AllJoynSessionLostEventArgs const&> const& handler) const;
// Revoke with event_token
void Lost(event_token const* cookie) const;
// Revoke with event_revoker
AllJoynSession::Lost_revoker Lost(auto_revoke_t, TypedEventHandler<AllJoynSession, AllJoynSessionLostEventArgs const&> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("AllJoynSession has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("AllJoynSession has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
// Register
event_token Lost(TypedEventHandler<AllJoynSession, AllJoynSessionLostEventArgs const&> const& handler) const;
// Revoke with event_token
void Lost(event_token const* cookie) const;
// Revoke with event_revoker
AllJoynSession::Lost_revoker Lost(auto_revoke_t, TypedEventHandler<AllJoynSession, AllJoynSessionLostEventArgs const&> const& handler) const;
public event TypedEventHandler<AllJoynSession,AllJoynSessionLostEventArgs> Lost;
[add: Windows.Foundation.Metadata.Deprecated("AllJoynSession has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("AllJoynSession has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public event TypedEventHandler<AllJoynSession,AllJoynSessionLostEventArgs> Lost;
function onLost(eventArgs) { /* Your code */ }
allJoynSession.addEventListener("lost", onLost);
allJoynSession.removeEventListener("lost", onLost);
- or -
allJoynSession.onlost = onLost;
Public Custom Event Lost As TypedEventHandler(Of AllJoynSession, AllJoynSessionLostEventArgs)
事件類型
- 屬性
Windows 需求
應用程式功能 |
allJoyn
|