共用方式為


SystemIdentification 類別

定義

提供資訊,以唯一識別應用程式執行所在的系統。

public ref class SystemIdentification abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SystemIdentification final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class SystemIdentification
Public Class SystemIdentification
繼承
Object Platform::Object IInspectable SystemIdentification
屬性

Windows 需求

裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)

備註

這是靜態類別。

注意

系統會使用呼叫應用程式的發行者識別碼和衍生自系統韌體/硬體的識別碼來建立系統識別字串。 所有未封裝 (Win32) 應用程式和所有沒有發行者識別碼的已封裝應用程式,系統識別字串都會相同。

方法

GetSystemIdForPublisher()

根據應用程式發行者識別碼取得系統的識別碼值。

GetSystemIdForUser(User)

根據使用者識別碼取得系統的識別碼值。

適用於