AllJoynBusAttachment.AcceptSessionJoinerRequested イベント

定義

重要

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

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

// Register
event_token AcceptSessionJoinerRequested(TypedEventHandler<AllJoynBusAttachment, AllJoynAcceptSessionJoinerEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AllJoynBusAttachment::AcceptSessionJoinerRequested_revoker AcceptSessionJoinerRequested(auto_revoke_t, TypedEventHandler<AllJoynBusAttachment, AllJoynAcceptSessionJoinerEventArgs 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 AcceptSessionJoinerRequested(TypedEventHandler<AllJoynBusAttachment, AllJoynAcceptSessionJoinerEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AllJoynBusAttachment::AcceptSessionJoinerRequested_revoker AcceptSessionJoinerRequested(auto_revoke_t, TypedEventHandler<AllJoynBusAttachment, AllJoynAcceptSessionJoinerEventArgs const&> const& handler) const;
public event TypedEventHandler<AllJoynBusAttachment,AllJoynAcceptSessionJoinerEventArgs> AcceptSessionJoinerRequested;
[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,AllJoynAcceptSessionJoinerEventArgs> AcceptSessionJoinerRequested;
function onAcceptSessionJoinerRequested(eventArgs) { /* Your code */ }
allJoynBusAttachment.addEventListener("acceptsessionjoinerrequested", onAcceptSessionJoinerRequested);
allJoynBusAttachment.removeEventListener("acceptsessionjoinerrequested", onAcceptSessionJoinerRequested);
- or -
allJoynBusAttachment.onacceptsessionjoinerrequested = onAcceptSessionJoinerRequested;
Public Custom Event AcceptSessionJoinerRequested As TypedEventHandler(Of AllJoynBusAttachment, AllJoynAcceptSessionJoinerEventArgs) 

イベントの種類

属性

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

注釈

送信者: イベントを発生させた AllJoynBusAttachment

Args: 要求元のエンドポイントを表す AllJoynAcceptSessionJoinerEventArgs オブジェクト。

アプリがこのイベントを処理 しない 場合、要求は既定で受け入れられます。

アプリがこのイベントを処理 する 場合、既定では拒否されます。 アプリは args を呼び出す必要があります。セッション参加要求を受け入れるためにハンドルを終了する前に Accept() を受け入れます。

適用対象