Freigeben über


AllJoynBusAttachment.AcceptSessionJoinerRequested Ereignis

Definition

Wichtig

Die Typen im Windows.Devices.AllJoyn-Namespace sind veraltet und in zukünftigen Versionen von Windows möglicherweise nicht verfügbar. AllJoyn – gesponsert von AllSeen Alliance – war ein Open-Source-Ermittlungs- und Kommunikationsprotokoll für IoT-Szenarien (Internet of Things), z. B. das Ein- und Ausschalten von Licht und Lesetemperaturen. Alternativen wie IoTivity Lite und IoTivity finden Sie auf der iotivity.org Website.

Tritt auf, wenn ein AllJoyn-Remoteendpunkt anfordert, der Sitzung des Busanfügungs beizutreten.

// Register
event_token AcceptSessionJoinerRequested(TypedEventHandler<AllJoynBusAttachment, AllJoynAcceptSessionJoinerEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AllJoynBusAttachment::AcceptSessionJoinerRequested_revoker AcceptSessionJoinerRequested(auto_revoke_t, TypedEventHandler<AllJoynBusAttachment, AllJoynAcceptSessionJoinerEventArgs 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 AcceptSessionJoinerRequested(TypedEventHandler<AllJoynBusAttachment, AllJoynAcceptSessionJoinerEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AllJoynBusAttachment::AcceptSessionJoinerRequested_revoker AcceptSessionJoinerRequested(auto_revoke_t, TypedEventHandler<AllJoynBusAttachment, AllJoynAcceptSessionJoinerEventArgs const&> const& handler) const;
public event TypedEventHandler<AllJoynBusAttachment,AllJoynAcceptSessionJoinerEventArgs> AcceptSessionJoinerRequested;
[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,AllJoynAcceptSessionJoinerEventArgs> AcceptSessionJoinerRequested;
function onAcceptSessionJoinerRequested(eventArgs) { /* Your code */ }
allJoynBusAttachment.addEventListener("acceptsessionjoinerrequested", onAcceptSessionJoinerRequested);
allJoynBusAttachment.removeEventListener("acceptsessionjoinerrequested", onAcceptSessionJoinerRequested);
- or -
allJoynBusAttachment.onacceptsessionjoinerrequested = onAcceptSessionJoinerRequested;
Public Custom Event AcceptSessionJoinerRequested As TypedEventHandler(Of AllJoynBusAttachment, AllJoynAcceptSessionJoinerEventArgs) 

Ereignistyp

Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 Anniversary Edition (eingeführt in 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v3.0)
App-Funktionen
allJoyn

Hinweise

Absender: Das AllJoynBusAttachment , das das Ereignis ausgelöst hat.

Args: Das AllJoynAcceptSessionJoinerEventArgs-Objekt , das den anfordernden Endpunkt darstellt.

Wenn die App dieses Ereignis nicht verarbeitet, wird die Anforderung standardmäßig akzeptiert.

Wenn die App dieses Ereignis verarbeitet, wird sie standardmäßig abgelehnt. Die App MUSS Argumente aufrufen. Accept() vor dem Beenden des Handles, um die Sitzungsbeitrittsanforderung zu akzeptieren.

Gilt für: