次の方法で共有


AllJoynBusAttachment.StateChanged イベント

定義

重要

Windows.Devices.AllJoyn 名前空間の型は非推奨となり、将来のバージョンの Windows では使用できない可能性があります。 AllSeen Alliance が主催する AllJoyn は、照明のオンとオフ、温度の読み取りなどのモノのインターネット (IoT) シナリオ向けのオープンソースの検出と通信プロトコルでした。 IoTivity LiteIoTivity などの代替手段については、iotivity.org Web サイトを参照してください。

バスの添付ファイルの状態が変更されたときに発生します。 AllJoynBusAttachmentState 列挙は、使用可能な状態値を定義します。

// Register
event_token StateChanged(TypedEventHandler<AllJoynBusAttachment, AllJoynBusAttachmentStateChangedEventArgs const&> const& handler) const;

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

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

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

// Revoke with event_revoker
AllJoynBusAttachment::StateChanged_revoker StateChanged(auto_revoke_t, TypedEventHandler<AllJoynBusAttachment, AllJoynBusAttachmentStateChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<AllJoynBusAttachment,AllJoynBusAttachmentStateChangedEventArgs> StateChanged;
[add: Windows.Foundation.Metadata.Deprecated("AllJoynBusAttachment has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("AllJoynBusAttachment has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public event TypedEventHandler<AllJoynBusAttachment,AllJoynBusAttachmentStateChangedEventArgs> StateChanged;
function onStateChanged(eventArgs) { /* Your code */ }
allJoynBusAttachment.addEventListener("statechanged", onStateChanged);
allJoynBusAttachment.removeEventListener("statechanged", onStateChanged);
- or -
allJoynBusAttachment.onstatechanged = onStateChanged;
Public Custom Event StateChanged As TypedEventHandler(Of AllJoynBusAttachment, AllJoynBusAttachmentStateChangedEventArgs) 

イベントの種類

属性

Windows の要件

アプリの機能
allJoyn

適用対象