Bagikan melalui


AllJoynSession.MemberAdded Kejadian

Definisi

Penting

Jenis di namespace Layanan Windows.Devices.AllJoyn tidak digunakan lagi, dan mungkin tidak tersedia di versi Windows yang akan datang. AllJoyn—disponsori oleh AllSeen Alliance—adalah penemuan sumber terbuka dan protokol komunikasi untuk skenario Internet of Things (IoT) seperti menyalakan dan mematikan lampu, serta membaca suhu. Untuk alternatif, seperti IoTivity Lite dan IoTivity, lihat situs web iotivity.org .

Peristiwa dipicu ketika anggota telah ditambahkan ke AllJoynSession.

// Register
event_token MemberAdded(TypedEventHandler<AllJoynSession, AllJoynSessionMemberAddedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AllJoynSession::MemberAdded_revoker MemberAdded(auto_revoke_t, TypedEventHandler<AllJoynSession, AllJoynSessionMemberAddedEventArgs 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 MemberAdded(TypedEventHandler<AllJoynSession, AllJoynSessionMemberAddedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AllJoynSession::MemberAdded_revoker MemberAdded(auto_revoke_t, TypedEventHandler<AllJoynSession, AllJoynSessionMemberAddedEventArgs const&> const& handler) const;
public event TypedEventHandler<AllJoynSession,AllJoynSessionMemberAddedEventArgs> MemberAdded;
[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,AllJoynSessionMemberAddedEventArgs> MemberAdded;
function onMemberAdded(eventArgs) { /* Your code */ }
allJoynSession.addEventListener("memberadded", onMemberAdded);
allJoynSession.removeEventListener("memberadded", onMemberAdded);
- or -
allJoynSession.onmemberadded = onMemberAdded;
Public Custom Event MemberAdded As TypedEventHandler(Of AllJoynSession, AllJoynSessionMemberAddedEventArgs) 

Jenis Acara

Atribut

Persyaratan Windows

Kemampuan aplikasi
allJoyn

Berlaku untuk