Bagikan melalui


SecondaryAuthenticationFactorAuthentication.ShowNotificationMessageAsync Metode

Definisi

Menampilkan pesan di atas layar kunci atau di dalam petak peta opsi masuk perangkat pendamping.

Catatan

API ini tidak tersedia untuk semua aplikasi. Kecuali akun pengembang Anda disediakan secara khusus oleh Microsoft untuk menggunakan kemampuan secondaryAuthenticationFactor , panggilan ke API ini akan gagal. Untuk mengajukan persetujuan, hubungi cdfonboard@microsoft.com. Untuk informasi selengkapnya tentang kemampuan, lihat Deklarasi kemampuan aplikasi. Untuk gambaran umum Kerangka Kerja Perangkat Pendamping, lihat ringkasan perangkat Windows Unlock with companion (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

Parameter

deviceName
String

Platform::String

winrt::hstring

Nama perangkat yang akan ditampilkan sebagai bagian dari pesan pemberitahuan (diatur menggunakan parameter pesan).

message
SecondaryAuthenticationFactorAuthenticationMessage

Pesan yang akan ditampilkan.

Mengembalikan

Metode ini tidak mengembalikan nilai.

Atribut

Berlaku untuk

Lihat juga