AllJoynBusAttachment.SessionJoined Evento

Definição

Importante

Os tipos no namespace Windows.Devices.AllJoyn foram preteridos e podem não estar disponíveis em versões futuras do Windows. O AllJoyn, patrocinado pela AllSeen Alliance, era um protocolo de descoberta e comunicação de software livre para cenários de IoT (Internet das Coisas), como acender e desligar as luzes e ler temperaturas. Para obter alternativas, como IoTivity Lite e IoTivity, consulte o site do iotivity.org .

Ocorre quando um ponto de extremidade Remoto AllJoyn ingressa na sessão do anexo do barramento.

// Register
event_token SessionJoined(TypedEventHandler<AllJoynBusAttachment, AllJoynSessionJoinedEventArgs const&> const& handler) const;

// Revoke with event_token
void SessionJoined(event_token const* cookie) const;

// Revoke with event_revoker
AllJoynBusAttachment::SessionJoined_revoker SessionJoined(auto_revoke_t, TypedEventHandler<AllJoynBusAttachment, AllJoynSessionJoinedEventArgs const&> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("AllJoynBusAttachment has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("AllJoynBusAttachment has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
// Register
event_token SessionJoined(TypedEventHandler<AllJoynBusAttachment, AllJoynSessionJoinedEventArgs const&> const& handler) const;

// Revoke with event_token
void SessionJoined(event_token const* cookie) const;

// Revoke with event_revoker
AllJoynBusAttachment::SessionJoined_revoker SessionJoined(auto_revoke_t, TypedEventHandler<AllJoynBusAttachment, AllJoynSessionJoinedEventArgs const&> const& handler) const;
public event TypedEventHandler<AllJoynBusAttachment,AllJoynSessionJoinedEventArgs> SessionJoined;
[add: Windows.Foundation.Metadata.Deprecated("AllJoynBusAttachment has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("AllJoynBusAttachment has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public event TypedEventHandler<AllJoynBusAttachment,AllJoynSessionJoinedEventArgs> SessionJoined;
function onSessionJoined(eventArgs) { /* Your code */ }
allJoynBusAttachment.addEventListener("sessionjoined", onSessionJoined);
allJoynBusAttachment.removeEventListener("sessionjoined", onSessionJoined);
- or -
allJoynBusAttachment.onsessionjoined = onSessionJoined;
Public Custom Event SessionJoined As TypedEventHandler(Of AllJoynBusAttachment, AllJoynSessionJoinedEventArgs) 

Tipo de evento

Atributos

Requisitos do Windows

Família de dispositivos
Windows 10 Anniversary Edition (introduzida na 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduzida na v3.0)
Funcionalidades do aplicativo
allJoyn

Comentários

Remetente: o AllJoynBusAttachment que gerou o evento.

Args: O objeto AllJoynAcceptSessionJoinerEventArgs que representa o joiner de sessão.

Aplica-se a