Compartilhar via


AllJoynBusAttachment.CredentialsVerificationRequested Evento

Definição

Importante

Os tipos no namespace Windows.Devices.AllJoyn foram preteridos e podem não estar disponíveis em versões futuras do Windows. AllJoyn , patrocinado pela AllSeen Alliance, foi um protocolo de descoberta e comunicação de software livre para cenários de Internet das Coisas (IoT), como acender e desligar as luzes e ler temperaturas. Para obter alternativas, como IoTivity Lite e IoTivity, consulte o site do iotivity.org .

Ocorre quando as credenciais foram fornecidas por um consumidor remoto para verificação.

// Register
event_token CredentialsVerificationRequested(TypedEventHandler<AllJoynBusAttachment, AllJoynCredentialsVerificationRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AllJoynBusAttachment::CredentialsVerificationRequested_revoker CredentialsVerificationRequested(auto_revoke_t, TypedEventHandler<AllJoynBusAttachment, AllJoynCredentialsVerificationRequestedEventArgs 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 CredentialsVerificationRequested(TypedEventHandler<AllJoynBusAttachment, AllJoynCredentialsVerificationRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AllJoynBusAttachment::CredentialsVerificationRequested_revoker CredentialsVerificationRequested(auto_revoke_t, TypedEventHandler<AllJoynBusAttachment, AllJoynCredentialsVerificationRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<AllJoynBusAttachment,AllJoynCredentialsVerificationRequestedEventArgs> CredentialsVerificationRequested;
[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,AllJoynCredentialsVerificationRequestedEventArgs> CredentialsVerificationRequested;
function onCredentialsVerificationRequested(eventArgs) { /* Your code */ }
allJoynBusAttachment.addEventListener("credentialsverificationrequested", onCredentialsVerificationRequested);
allJoynBusAttachment.removeEventListener("credentialsverificationrequested", onCredentialsVerificationRequested);
- or -
allJoynBusAttachment.oncredentialsverificationrequested = onCredentialsVerificationRequested;
Public Custom Event CredentialsVerificationRequested As TypedEventHandler(Of AllJoynBusAttachment, AllJoynCredentialsVerificationRequestedEventArgs) 

Tipo de evento

Atributos

Requisitos do Windows

Funcionalidades do aplicativo
allJoyn

Aplica-se a