AllJoynBusAttachment.AcceptSessionJoinerRequested 이벤트
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
중요
Windows.Devices.AllJoyn 네임스페이스의 형식은 더 이상 사용되지 않으며 이후 버전의 Windows에서는 사용할 수 없습니다. AllSeen Alliance가 후원하는 AllJoyn은 조명 켜기 및 끄기, 온도 읽기와 같은 IoT(사물 인터넷) 시나리오에 대한 오픈 소스 검색 및 통신 프로토콜이었습니다. IoTivity Lite 및 IoTivity와 같은 대안은 iotivity.org 웹 사이트를 참조하세요.
원격 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 개체입니다.
앱이 이 이벤트를 처리 하지 않으면 기본적으로 요청이 수락됩니다.
앱이 이 이벤트를 처리하는 경우 기본적으로 거부됩니다. 앱은 인수를 호출해야 합니다. 세션 조인 요청을 수락하기 위해 핸들을 종료하기 전에 Accept().