UserIdentity.Id 屬性

定義

取得使用者的唯一 Microsoft 帳戶識別碼。 此值僅適用于 Microsoft 應用程式合作夥伴。

注意

如果您要針對Windows 10或更新版本進行開發,請改用Windows.Security.Authentication.Web.Core API。 如需詳細資訊,請參閱 Web 帳戶管理員

public:
 property Platform::String ^ Id { Platform::String ^ get(); };
winrt::hstring Id();
public string Id { get; }
var string = userIdentity.id;
Public ReadOnly Property Id As String

屬性值

String

Platform::String

winrt::hstring

使用者的唯一 Microsoft 帳戶識別碼。

適用於