共用方式為


EasClientDeviceInformation.Id 屬性

定義

傳回本機裝置的識別碼。

public:
 property Platform::Guid Id { Platform::Guid get(); };
winrt::guid Id();
public Guid Id { get; }
var guid = easClientDeviceInformation.id;
Public ReadOnly Property Id As Guid

屬性值

Guid

Platform::Guid

winrt::guid

本機裝置的識別碼。 值範圍是 16 個位元組。

備註

僅限 UWP 應用程式。 Id 屬性代表使用從 MachineID、User SID 和 Package Family Name 之 MachineID、User SID 和 Package Family Name 之 SHA256 雜湊的前 16 個位元組截斷的 DEVICEId ,其中 MachineID 會使用本機使用者群組的 SID。 GUID 的每個元件都會以網路位元組順序傳回。

適用於