AllJoynBusAttachment.CredentialsRequested Événement
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Important
Les types de l’espace de noms Windows.Devices.AllJoyn sont déconseillés et peuvent ne pas être disponibles dans les versions ultérieures de Windows. AllJoyn, parrainé par AllSeen Alliance, était un protocole de découverte et de communication open source pour les scénarios IoT (Internet of Things), tels que l’activation et l’arrêt des lumières et la lecture des températures. Pour des alternatives, telles qu’IoTivity Lite et IoTivity, reportez-vous au iotivity.org site web.
Se produit lorsque des informations d’identification sont demandées pour l’authentification.
// 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)
Type d'événement
- Attributs
Configuration requise pour Windows
Fonctionnalités de l’application |
allJoyn
|