SystemIdentification 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供資訊,以唯一識別應用程式執行所在的系統。
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
- 繼承
- 屬性
Windows 需求
裝置系列 |
Windows 10 Anniversary Edition (已於 10.0.14393.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)
|
備註
這是靜態類別。
注意
系統會使用呼叫應用程式的發行者識別碼和衍生自系統韌體/硬體的識別碼來建立系統識別字串。 所有未封裝 (Win32) 應用程式和所有沒有發行者識別碼的已封裝應用程式,系統識別字串都會相同。
方法
GetSystemIdForPublisher() |
根據應用程式發行者識別碼取得系統的識別碼值。 |
GetSystemIdForUser(User) |
根據使用者識別碼取得系統的識別碼值。 |