AllJoynBusAttachment.SessionJoined 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 un protocollo di individuazione e comunicazione open source per scenari IoT (Internet of Things), ad esempio l'accensione e la disattivazione delle luci e la lettura delle temperature. Per alternative, ad esempio IoTivity Lite e IoTivity, fare riferimento al sito Web di iotivity.org .

Si verifica quando un endpoint AllJoyn remoto partecipa alla sessione dell'allegato del bus.

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

Attributi

Requisiti Windows

Famiglia di dispositivi
Windows 10 Anniversary Edition (è stato introdotto in 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v3.0)
Funzionalità dell'app
allJoyn

Commenti

Mittente:AllJoynBusAttachment che ha generato l'evento.

Args: Oggetto AllJoynAcceptSessionJoinerEventArgs che rappresenta il joiner di sessione.

Si applica a