UserIdentity.Id Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the user's unique Microsoft account identifier. This value is available only to Microsoft application partners.
Note
If you are developing for Windows 10 or greater, use the Windows.Security.Authentication.Web.Core APIs instead. For more information, see Web account manager.
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
Property Value
The user's unique Microsoft account identifier.