AllJoynBusObject.Stopped 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重要
Windows.Devices.AllJoyn 命名空间中的类型已弃用,将来的 Windows 版本中可能不可用。 AllJoyn(由 AllSeen 联盟赞助)是一种开源发现和通信协议,适用于物联网 (IoT) 方案,例如打开和关闭灯以及读取温度。 有关 IoTivity Lite 和 IoTivity 等替代项,请参阅 iotivity.org 网站。
停止 AllJoynBusObject 时触发的事件。
// 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)
事件类型
- 属性
Windows 要求
应用功能 |
allJoyn
|