次の方法で共有


SecondaryAuthenticationFactorInfo.DeviceId プロパティ

定義

デバイス ID を取得します。

注意

この API は、すべてのアプリで使用できるわけではありません。 開発者アカウントが secondaryAuthenticationFactor 機能を使用するように Microsoft によって特別にプロビジョニングされていない限り、この API の呼び出しは失敗します。 承認を申請するには、 にお問い合わせください cdfonboard@microsoft.com。 機能の詳細については、「 アプリの機能宣言」を参照してください。 コンパニオン デバイス フレームワークの概要については、コンパニオン (IoT) デバイスを使用した Windows のロック解除の 概要に関するページを参照してください。

public:
 property Platform::String ^ DeviceId { Platform::String ^ get(); };
winrt::hstring DeviceId();
/// [get: Windows.Foundation.Metadata.Deprecated("SecondaryAuthenticationFactorInfo is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
winrt::hstring DeviceId();
public string DeviceId { get; }
public string DeviceId { [Windows.Foundation.Metadata.Deprecated("SecondaryAuthenticationFactorInfo is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")] get; }
var string = secondaryAuthenticationFactorInfo.deviceId;
Public ReadOnly Property DeviceId As String

プロパティ値

String

Platform::String

winrt::hstring

デバイス ID。

属性

適用対象

こちらもご覧ください