Share via


AllJoynBusObject.Stopped Event

Definition

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 the AllJoynBusObject is stopped.

// Register
event_token Stopped(TypedEventHandler<AllJoynBusObject, AllJoynBusObjectStoppedEventArgs const&> const& handler) const;

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

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

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

// Revoke with event_revoker
AllJoynBusObject::Stopped_revoker Stopped(auto_revoke_t, TypedEventHandler<AllJoynBusObject, AllJoynBusObjectStoppedEventArgs const&> const& handler) const;
public event TypedEventHandler<AllJoynBusObject,AllJoynBusObjectStoppedEventArgs> Stopped;
[add: Windows.Foundation.Metadata.Deprecated("AllJoynBusObject has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("AllJoynBusObject has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public event TypedEventHandler<AllJoynBusObject,AllJoynBusObjectStoppedEventArgs> Stopped;
function onStopped(eventArgs) { /* Your code */ }
allJoynBusObject.addEventListener("stopped", onStopped);
allJoynBusObject.removeEventListener("stopped", onStopped);
- or -
allJoynBusObject.onstopped = onStopped;
Public Custom Event Stopped As TypedEventHandler(Of AllJoynBusObject, AllJoynBusObjectStoppedEventArgs) 

Event Type

Attributes

Windows requirements

App capabilities
allJoyn

Applies to