SecondaryAuthenticationFactorAuthentication.ShowNotificationMessageAsync Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Zeigt eine Meldung über dem Sperrbildschirm oder in der Optionskachel für die Begleitgeräteanmeldung an.
Hinweis
Diese API ist nicht für alle Apps verfügbar. Wenn Ihr Entwicklerkonto nicht speziell von Microsoft für die Verwendung der funktion secondaryAuthenticationFactor bereitgestellt wurde, schlagen Aufrufe dieser API fehl. Wenden Sie sich an cdfonboard@microsoft.com, um eine Genehmigung zu beantragen. Weitere Informationen zu Funktionen finden Sie unter App-Funktionsdeklarationen. Eine Übersicht über das Begleitgeräteframework finden Sie unter Windows Unlock with companion devices (IoT)-Geräte –Übersicht.
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
Parameter
- deviceName
-
String
Platform::String
winrt::hstring
Der Name des Geräts, das als Teil der Benachrichtigung angezeigt werden soll (wird mithilfe des Nachrichtenparameters festgelegt).
Die anzuzeigende Nachricht.
Gibt zurück
Diese Methode gibt keinen Wert zurück.
- Attribute