UserIdentity.SafeCustomerId Property

Definition

Gets an obfuscated customer ID specific to the calling application. This ID allows your application to identify the user across sessions but cannot be used to share data between separate applications since each application will receive a distinct SafeCustomerId value for the same Microsoft account.

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 ^ SafeCustomerId { Platform::String ^ get(); };
winrt::hstring SafeCustomerId();
public string SafeCustomerId { get; }
var string = userIdentity.safeCustomerId;
Public ReadOnly Property SafeCustomerId As String

Property Value

String

Platform::String

winrt::hstring

An obfuscated customer ID specific to the calling application.

Applies to