Partager via


SecondaryAuthenticationFactorAuthentication.ShowNotificationMessageAsync Méthode

Définition

Affiche un message au-dessus de l’écran de verrouillage ou dans la vignette de l’option de connexion à l’appareil complémentaire.

Notes

Cette API n’est pas disponible pour toutes les applications. Sauf si votre compte de développeur est spécialement configuré par Microsoft pour utiliser la fonctionnalité secondaryAuthenticationFactor , les appels à cette API échouent. Pour demander une approbation, contactez cdfonboard@microsoft.com. Pour plus d’informations sur les fonctionnalités, consultez Déclarations de fonctionnalités d’application. Pour obtenir une vue d’ensemble de l’infrastructure d’appareil complémentaire, consultez la vue d’ensemble du déverrouillage Windows avec des appareils complémentaires (IoT).

public:
 static IAsyncAction ^ ShowNotificationMessageAsync(Platform::String ^ deviceName, SecondaryAuthenticationFactorAuthenticationMessage message);
 static IAsyncAction ShowNotificationMessageAsync(winrt::hstring const& deviceName, SecondaryAuthenticationFactorAuthenticationMessage const& message);
/// [Windows.Foundation.Metadata.Deprecated("SecondaryAuthenticationFactorAuthentication is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
 static IAsyncAction ShowNotificationMessageAsync(winrt::hstring const& deviceName, SecondaryAuthenticationFactorAuthenticationMessage const& message);
public static IAsyncAction ShowNotificationMessageAsync(string deviceName, SecondaryAuthenticationFactorAuthenticationMessage message);
[Windows.Foundation.Metadata.Deprecated("SecondaryAuthenticationFactorAuthentication is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
public static IAsyncAction ShowNotificationMessageAsync(string deviceName, SecondaryAuthenticationFactorAuthenticationMessage message);
function showNotificationMessageAsync(deviceName, message)
Public Shared Function ShowNotificationMessageAsync (deviceName As String, message As SecondaryAuthenticationFactorAuthenticationMessage) As IAsyncAction

Paramètres

deviceName
String

Platform::String

winrt::hstring

Nom de l’appareil à afficher dans le message de notification (défini à l’aide du paramètre message).

Retours

Cette méthode ne retourne pas de valeur.

Attributs

S’applique à

Voir aussi