Share via


SecondaryAuthenticationFactorAuthentication.ShowNotificationMessageAsync Method

Definition

Shows a message above the lock screen or within the companion device sign in option tile.

Note

This API is not available to all apps. Unless your developer account is specially provisioned by Microsoft to use the secondaryAuthenticationFactor capability, calls to this API will fail. To apply for approval, contact cdfonboard@microsoft.com. For more information on capabilities, see App capability declarations. For an overview of the Companion Device Framework, see the Windows Unlock with companion (IoT) devices overview.

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

Parameters

deviceName
String

Platform::String

winrt::hstring

The name of device to display as part of the notification message (set using the message parameter).

Returns

This method does not return a value.

Attributes

Applies to

See also