SecondaryAuthenticationFactorRegistration.AbortRegisteringDeviceAsync Method

Definition

Aborts registering the companion device.

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:
 virtual IAsyncAction ^ AbortRegisteringDeviceAsync(Platform::String ^ errorLogMessage) = AbortRegisteringDeviceAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction AbortRegisteringDeviceAsync(winrt::hstring const& errorLogMessage);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("SecondaryAuthenticationFactorRegistration is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
IAsyncAction AbortRegisteringDeviceAsync(winrt::hstring const& errorLogMessage);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction AbortRegisteringDeviceAsync(string errorLogMessage);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("SecondaryAuthenticationFactorRegistration is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
public IAsyncAction AbortRegisteringDeviceAsync(string errorLogMessage);
function abortRegisteringDeviceAsync(errorLogMessage)
Public Function AbortRegisteringDeviceAsync (errorLogMessage As String) As IAsyncAction

Parameters

errorLogMessage
String

An error message to log.

Returns

IAsyncAction

This method does not return a value.

Attributes

Applies to

See also