AllJoynBusAttachment.SessionJoined イベント

定義

重要

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

リモート AllJoyn エンドポイントがバス接続のセッションに参加したときに発生します。

// Register
event_token SessionJoined(TypedEventHandler<AllJoynBusAttachment, AllJoynSessionJoinedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AllJoynBusAttachment::SessionJoined_revoker SessionJoined(auto_revoke_t, TypedEventHandler<AllJoynBusAttachment, AllJoynSessionJoinedEventArgs 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 SessionJoined(TypedEventHandler<AllJoynBusAttachment, AllJoynSessionJoinedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AllJoynBusAttachment::SessionJoined_revoker SessionJoined(auto_revoke_t, TypedEventHandler<AllJoynBusAttachment, AllJoynSessionJoinedEventArgs const&> const& handler) const;
public event TypedEventHandler<AllJoynBusAttachment,AllJoynSessionJoinedEventArgs> SessionJoined;
[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,AllJoynSessionJoinedEventArgs> SessionJoined;
function onSessionJoined(eventArgs) { /* Your code */ }
allJoynBusAttachment.addEventListener("sessionjoined", onSessionJoined);
allJoynBusAttachment.removeEventListener("sessionjoined", onSessionJoined);
- or -
allJoynBusAttachment.onsessionjoined = onSessionJoined;
Public Custom Event SessionJoined As TypedEventHandler(Of AllJoynBusAttachment, AllJoynSessionJoinedEventArgs) 

イベントの種類

属性

Windows の要件

デバイス ファミリ
Windows 10 Anniversary Edition (10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox で導入)
API contract
Windows.Foundation.UniversalApiContract (v3.0 で導入)
アプリの機能
allJoyn

注釈

Sender: イベントを発生させた AllJoynBusAttachment

Args: セッション結合子を表す AllJoynAcceptSessionJoinerEventArgs オブジェクト。

適用対象