Freigeben über


AllJoynBusAttachment.CredentialsRequested Ereignis

Definition

Wichtig

Die Typen im Windows.Devices.AllJoyn-Namespace sind veraltet und in zukünftigen Versionen von Windows möglicherweise nicht verfügbar. AllJoyn – gesponsert von AllSeen Alliance – war ein Open-Source-Ermittlungs- und Kommunikationsprotokoll für IoT-Szenarien (Internet of Things), z. B. das Einschalten und Deaktivieren von Lichtern und lesetemperaturen. Alternativen wie IoTivity Lite und IoTivity finden Sie auf der website iotivity.org .

Tritt auf, wenn Anmeldeinformationen für die Authentifizierung angefordert werden.

// 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) 

Ereignistyp

Attribute

Windows-Anforderungen

App-Funktionen
allJoyn

Gilt für: