Search code examples
.netwindowsvb.netuwppairing

Is DeviceInformation.Id persistent in the .NET Framework?


For Windows apps, does DeviceInformation.Id remain the same between app open/close, system reboots, device disconnect/reconnect, etc.? Can it be used to store "known" devices?


Solution

  • I tested it with DeviceInformation.FindAllAsync() and recorded the Id of several devices. After restarting the computer, their Id did not change.

    Update:

    I looked up the documentation for DeviceInformation and can tell that the Id is immutable. This is the documentation. Since Id is used as a credential for device information reuse, it is reliable.

    Best regards.