AllJoynBusAttachment.SessionJoined Event

Definition

Important

The types in the Windows.Devices.AllJoyn namespace are deprecated, and might not be available in future versions of Windows. AllJoyn—sponsored by AllSeen Alliance—was an open-source discovery and communication protocol for Internet of Things (IoT) scenarios such as turning lights on and off, and reading temperatures. For alternatives, such as IoTivity Lite and IoTivity, refer to the iotivity.org website.

Occurs when a remote AllJoyn endpoint joins the session of the bus attachment.

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

Event Type

Attributes

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)
App capabilities
allJoyn

Remarks

Sender: the AllJoynBusAttachment that raised the event.

Args: The AllJoynAcceptSessionJoinerEventArgs object that represents the session joiner.

Applies to