Compartir a través de


AllJoynSession.Lost Evento

Definición

Importante

Los tipos del espacio de nombres Windows.Devices.AllJoyn están en desuso y es posible que no estén disponibles en versiones futuras de Windows. AllJoyn, patrocinado por AllSeen Alliance, fue un protocolo de comunicación y detección de código abierto para escenarios de Internet de las cosas (IoT), como encender y apagar las luces, y las temperaturas de lectura. Para conocer alternativas, como IoTivity Lite e IoTivity, consulte el sitio web de iotivity.org .

Evento desencadenado cuando se ha perdido allJoynSession . Puede encontrar más información sobre el evento en el allJoynSessionLostEventArgs asociado.

// 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) 

Tipo de evento

Atributos

Requisitos de Windows

Características de aplicaciones
allJoyn

Se aplica a