AllJoynSession.MemberAdded Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Important
The types in the Windows.Devices.AllJoyn namespace are deprecated, and might not be available in future versions of Windows. AllJoyn—sponsored by AllSeen Alliance—was an open-source discovery and communication protocol for Internet of Things (IoT) scenarios such as turning lights on and off, and reading temperatures. For alternatives, such as IoTivity Lite and IoTivity, refer to the iotivity.org website.
Event triggered when a member has been added to an 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)
Event Type
- Attributes
Windows requirements
App capabilities |
allJoyn
|