AllJoynSession AllJoynSession AllJoynSession AllJoynSession AllJoynSession Class

Definition

Represents an AllJoyn session created with a provider to consume the services available from that provider.

public : sealed class AllJoynSession
struct winrt::Windows::Devices::AllJoyn::AllJoynSession
public sealed class AllJoynSession
Public NotInheritable Class AllJoynSession
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)
Capabilities
allJoyn

Properties

Id Id Id Id Id

Gets the unique ID of the session.

Status Status Status Status Status

Gets the current status of the session.

Methods

GetFromServiceInfoAsync(AllJoynServiceInfo) GetFromServiceInfoAsync(AllJoynServiceInfo) GetFromServiceInfoAsync(AllJoynServiceInfo) GetFromServiceInfoAsync(AllJoynServiceInfo) GetFromServiceInfoAsync(AllJoynServiceInfo)

Gets a session with the producer based on the specified service info.

GetFromServiceInfoAsync(AllJoynServiceInfo, AllJoynBusAttachment) GetFromServiceInfoAsync(AllJoynServiceInfo, AllJoynBusAttachment) GetFromServiceInfoAsync(AllJoynServiceInfo, AllJoynBusAttachment) GetFromServiceInfoAsync(AllJoynServiceInfo, AllJoynBusAttachment) GetFromServiceInfoAsync(AllJoynServiceInfo, AllJoynBusAttachment)

Gets a session with the producer based on the specified service info and bus attachment.

RemoveMemberAsync(String) RemoveMemberAsync(String) RemoveMemberAsync(String) RemoveMemberAsync(String) RemoveMemberAsync(String)

Removes the member specified by the input String from the session.

Events

Lost Lost Lost Lost Lost

Event triggered when an AllJoynSession has been lost. More information about the event can be found in the associated AllJoynSessionLostEventArgs.

MemberAdded MemberAdded MemberAdded MemberAdded MemberAdded

Event triggered when a member has been added to an AllJoynSession.

MemberRemoved MemberRemoved MemberRemoved MemberRemoved MemberRemoved

Event triggered when a member has been removed from an AllJoynSession.