AllJoynBusAttachment.CredentialsRequested イベント

定義

重要

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

認証のために資格情報が要求されたときに発生します。

// Register
event_token CredentialsRequested(TypedEventHandler<AllJoynBusAttachment, AllJoynCredentialsRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AllJoynBusAttachment::CredentialsRequested_revoker CredentialsRequested(auto_revoke_t, TypedEventHandler<AllJoynBusAttachment, AllJoynCredentialsRequestedEventArgs 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 CredentialsRequested(TypedEventHandler<AllJoynBusAttachment, AllJoynCredentialsRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AllJoynBusAttachment::CredentialsRequested_revoker CredentialsRequested(auto_revoke_t, TypedEventHandler<AllJoynBusAttachment, AllJoynCredentialsRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<AllJoynBusAttachment,AllJoynCredentialsRequestedEventArgs> CredentialsRequested;
[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,AllJoynCredentialsRequestedEventArgs> CredentialsRequested;
function onCredentialsRequested(eventArgs) { /* Your code */ }
allJoynBusAttachment.addEventListener("credentialsrequested", onCredentialsRequested);
allJoynBusAttachment.removeEventListener("credentialsrequested", onCredentialsRequested);
- or -
allJoynBusAttachment.oncredentialsrequested = onCredentialsRequested;
Public Custom Event CredentialsRequested As TypedEventHandler(Of AllJoynBusAttachment, AllJoynCredentialsRequestedEventArgs) 

イベントの種類

属性

Windows の要件

アプリの機能
allJoyn

適用対象