AllJoynSession.Lost イベント

定義

重要

Windows.Devices.AllJoyn 名前空間の型は非推奨であり、今後のバージョンの Windows では使用できない可能性があります。 AllJoyn は、AllSeen Alliance によって後援され、ライトのオンとオフ、温度の読み取りなどのモノのインターネット (IoT) シナリオ向けのオープンソースの検出および通信プロトコルでした。 IoTivity LiteIoTivity などの代替手段については、iotivity.org Web サイトを参照してください。

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

適用対象