Share via


SecondaryAuthenticationFactorRegistration.UnregisterDevicePresenceMonitoringAsync Method

Definition

Deprecated. Unregisters a companion device from presence monitoring.

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

Parameters

deviceId
String

Platform::String

winrt::hstring

The unique identifier for the device.

Returns

This method does not return a value.

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Applies to