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

Property Value

string string string

An obfuscated customer ID specific to the calling application.