Freigeben über


SecondaryAuthenticationFactorRegistration.RequestStartRegisteringDeviceAsync Methode

Definition

Beginnt mit der Registrierung eines Begleitgeräts.

Hinweis

Diese API ist nicht für alle Apps verfügbar. Wenn Ihr Entwicklerkonto nicht speziell von Microsoft für die Verwendung der funktion secondaryAuthenticationFactor bereitgestellt wurde, schlagen Aufrufe dieser API fehl. Wenden Sie sich an cdfonboard@microsoft.com, um eine Genehmigung zu beantragen. Weitere Informationen zu Funktionen finden Sie unter App-Funktionsdeklarationen. Eine Übersicht über das Begleitgeräteframework finden Sie unter Windows Unlock with companion devices (IoT)-Geräte –Übersicht.

public:
 static IAsyncOperation<SecondaryAuthenticationFactorRegistrationResult ^> ^ RequestStartRegisteringDeviceAsync(Platform::String ^ deviceId, SecondaryAuthenticationFactorDeviceCapabilities capabilities, Platform::String ^ deviceFriendlyName, Platform::String ^ deviceModelNumber, IBuffer ^ deviceKey, IBuffer ^ mutualAuthenticationKey);
 static IAsyncOperation<SecondaryAuthenticationFactorRegistrationResult> RequestStartRegisteringDeviceAsync(winrt::hstring const& deviceId, SecondaryAuthenticationFactorDeviceCapabilities const& capabilities, winrt::hstring const& deviceFriendlyName, winrt::hstring const& deviceModelNumber, IBuffer const& deviceKey, IBuffer const& mutualAuthenticationKey);
/// [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 IAsyncOperation<SecondaryAuthenticationFactorRegistrationResult> RequestStartRegisteringDeviceAsync(winrt::hstring const& deviceId, SecondaryAuthenticationFactorDeviceCapabilities const& capabilities, winrt::hstring const& deviceFriendlyName, winrt::hstring const& deviceModelNumber, IBuffer const& deviceKey, IBuffer const& mutualAuthenticationKey);
public static IAsyncOperation<SecondaryAuthenticationFactorRegistrationResult> RequestStartRegisteringDeviceAsync(string deviceId, SecondaryAuthenticationFactorDeviceCapabilities capabilities, string deviceFriendlyName, string deviceModelNumber, IBuffer deviceKey, IBuffer mutualAuthenticationKey);
[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 IAsyncOperation<SecondaryAuthenticationFactorRegistrationResult> RequestStartRegisteringDeviceAsync(string deviceId, SecondaryAuthenticationFactorDeviceCapabilities capabilities, string deviceFriendlyName, string deviceModelNumber, IBuffer deviceKey, IBuffer mutualAuthenticationKey);
function requestStartRegisteringDeviceAsync(deviceId, capabilities, deviceFriendlyName, deviceModelNumber, deviceKey, mutualAuthenticationKey)
Public Shared Function RequestStartRegisteringDeviceAsync (deviceId As String, capabilities As SecondaryAuthenticationFactorDeviceCapabilities, deviceFriendlyName As String, deviceModelNumber As String, deviceKey As IBuffer, mutualAuthenticationKey As IBuffer) As IAsyncOperation(Of SecondaryAuthenticationFactorRegistrationResult)

Parameter

deviceId
String

Platform::String

winrt::hstring

Die ID des Geräts.

capabilities
SecondaryAuthenticationFactorDeviceCapabilities

Die Gerätefunktionen.

deviceFriendlyName
String

Platform::String

winrt::hstring

Der Anzeigename des Geräts.

deviceModelNumber
String

Platform::String

winrt::hstring

Die Gerätemodellnummer.

deviceKey
IBuffer

Der Geräteschlüssel.

mutualAuthenticationKey
IBuffer

Der schlüssel für die gegenseitige Authentifizierung.

Gibt zurück

Ein asynchroner Vorgang mit einem Registrierungsergebnis instance.

Attribute

Hinweise

Ein Begleitgerät muss für die sekundäre Authentifizierung registriert werden, bevor es optional für die Überwachung der Gerätepräsenz registriert wird.

Gilt für:

Weitere Informationen