Condividi tramite


AllJoynSession.Lost Evento

Definizione

Importante

I tipi nello spazio dei nomi Windows.Devices.AllJoyn sono deprecati e potrebbero non essere disponibili nelle versioni future di Windows. AllJoyn, sponsorizzato da AllSeen Alliance, è stato uno scenario di individuazione e comunicazione open source per gli scenari IoT (Internet of Things), ad esempio l'attivazione e la disattivazione delle luci e la lettura delle temperature. Per alternative, ad esempio IoTivity Lite e IoTivity, fare riferimento al sito Web iotivity.org .

Evento attivato quando è stato perso un oggetto AllJoynSession . Altre informazioni sull'evento sono disponibili nell'oggetto AllJoynSessionLostEventArgs associato.

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

Attributi

Requisiti Windows

Funzionalità dell'app
allJoyn

Si applica a