AllJoynSession.MemberRemoved Événement

Définition

Important

Les types de l’espace de noms Windows.Devices.AllJoyn sont déconseillés et peuvent ne pas être disponibles dans les versions ultérieures de Windows. AllJoyn, parrainé par AllSeen Alliance, était un protocole de découverte et de communication open source pour les scénarios IoT (Internet of Things), tels que l’activation et l’arrêt des lumières et la lecture des températures. Pour des alternatives, telles qu’IoTivity Lite et IoTivity, reportez-vous au iotivity.org site web.

Événement déclenché lorsqu’un membre a été supprimé d’une AllJoynSession.

// Register
event_token MemberRemoved(TypedEventHandler<AllJoynSession, AllJoynSessionMemberRemovedEventArgs const&> const& handler) const;

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

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

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

// Revoke with event_revoker
AllJoynSession::MemberRemoved_revoker MemberRemoved(auto_revoke_t, TypedEventHandler<AllJoynSession, AllJoynSessionMemberRemovedEventArgs const&> const& handler) const;
public event TypedEventHandler<AllJoynSession,AllJoynSessionMemberRemovedEventArgs> MemberRemoved;
[add: Windows.Foundation.Metadata.Deprecated("AllJoynSession has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("AllJoynSession has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public event TypedEventHandler<AllJoynSession,AllJoynSessionMemberRemovedEventArgs> MemberRemoved;
function onMemberRemoved(eventArgs) { /* Your code */ }
allJoynSession.addEventListener("memberremoved", onMemberRemoved);
allJoynSession.removeEventListener("memberremoved", onMemberRemoved);
- or -
allJoynSession.onmemberremoved = onMemberRemoved;
Public Custom Event MemberRemoved As TypedEventHandler(Of AllJoynSession, AllJoynSessionMemberRemovedEventArgs) 

Type d'événement

Attributs

Configuration requise pour Windows

Fonctionnalités de l’application
allJoyn

S’applique à