AllJoynSession.Lost Evento
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Importante
Os tipos no namespace Windows.Devices.AllJoyn foram preteridos e podem não estar disponíveis em versões futuras do Windows. AllJoyn , patrocinado pela AllSeen Alliance, foi um protocolo de descoberta e comunicação de software livre para cenários de Internet das Coisas (IoT), como acender e desligar as luzes e ler temperaturas. Para obter alternativas, como IoTivity Lite e IoTivity, consulte o site do iotivity.org .
Evento disparado quando um AllJoynSession foi perdido. Mais informações sobre o evento podem ser encontradas no AllJoynSessionLostEventArgs associado.
// 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 do Windows
Funcionalidades do aplicativo |
allJoyn
|