SecondaryAuthenticationFactorRegistration.UnregisterDeviceAsync Methode

Definition

Hebt die Registrierung eines Begleitgeräts auf.

Hinweis

Diese API ist nicht für alle Apps verfügbar. Wenn Ihr Entwicklerkonto nicht speziell von Microsoft bereitgestellt wird, um die funktion secondaryAuthenticationFactor zu verwenden, schlagen Aufrufe dieser API fehl. Wenden Sie sich an , cdfonboard@microsoft.comum die Genehmigung zu beantragen. Weitere Informationen zu Funktionen finden Sie unter App-Funktionsdeklarationen. Eine Übersicht über das Companion Device Framework finden Sie in der Übersicht über Windows Unlock with Companion(IoT)-Geräte .

public:
 static IAsyncAction ^ UnregisterDeviceAsync(Platform::String ^ deviceId);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction UnregisterDeviceAsync(winrt::hstring const& deviceId);
/// [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")]
 static IAsyncAction UnregisterDeviceAsync(winrt::hstring const& deviceId);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction UnregisterDeviceAsync(string deviceId);
[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 static IAsyncAction UnregisterDeviceAsync(string deviceId);
function unregisterDeviceAsync(deviceId)
Public Shared Function UnregisterDeviceAsync (deviceId As String) As IAsyncAction

Parameter

deviceId
String

Platform::String

winrt::hstring

Die ID des Geräts, das die Registrierung aufheben soll.

Gibt zurück

Diese Methode gibt keinen Wert zurück.

Attribute

Gilt für:

Weitere Informationen