Поделиться через


AllJoynSession.MemberRemoved Событие

Определение

Важно!

Типы в пространстве имен Windows.Devices.AllJoyn являются устаревшими и могут быть недоступны в будущих версиях Windows. AllJoyn, спонсируемая AllSeen Alliance, — это протокол обнаружения и связи с открытым кодом для сценариев Интернета вещей ( IoT), таких как включение и выключение света, а также чтение температуры. Альтернативные варианты, такие как IoTivity Lite и IoTivity, см. на веб-сайте iotivity.org .

Событие, активируется при удалении элемента из 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) 

Тип события

Атрибуты

Требования к Windows

Возможности приложения
allJoyn

Применяется к