共用方式為


AllJoynSession.MemberRemoved 事件

定義

重要

Windows.Devices.AllJoyn命名空間中的類型已被取代,未來版本的 Windows 可能無法使用。 AllJoyn 是由 AllSeen聯盟贊助,是一種開放原始碼探索和通訊協定,適用于物聯網 (IoT) 案例,例如開啟和關閉光線,以及讀取溫度。 如需 IoTivity LiteIoTivity等替代方案,請參閱 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

適用於