共用方式為


EasClientDeviceInformation 類別

定義

提供應用程式從本機裝置擷取裝置資訊的能力。

如需顯示郵件用戶端如何擷取裝置資訊的 Windows 8.x 範例應用程式,請參閱 [郵件用戶端 Windows 8.x 範例的 EAS 原則] ( (https://github.com/microsoftarchive/msdn-code-gallery-microsoft/tree/master/Official%20Windows%20Platform%20Sample/Windows%208.1%20Store%20app%20samples/99866-Windows%208.1%20Store%20app%20samples/EAS%20policies%20for%20mail%20clients%20sample)

public ref class EasClientDeviceInformation sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class EasClientDeviceInformation final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class EasClientDeviceInformation final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class EasClientDeviceInformation
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class EasClientDeviceInformation
function EasClientDeviceInformation()
Public NotInheritable Class EasClientDeviceInformation
繼承
Object Platform::Object IInspectable EasClientDeviceInformation
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

建構函式

EasClientDeviceInformation()

建立 物件的實例,允許呼叫端應用程式從本機裝置擷取裝置資訊。

屬性

FriendlyName

取得本機裝置的易記名稱。 此值可能來自 NetBIOS 電腦名稱稱。

Id

傳回本機裝置的識別碼。

OperatingSystem

取得本機裝置的作業系統名稱。

SystemFirmwareVersion

取得本機裝置的系統韌體版本。

SystemHardwareVersion

取得本機裝置的系統硬體版本。

SystemManufacturer

取得本機裝置的系統製造商。 只有在SystemSku的值是空的時,才使用SystemManufacturer

SystemProductName

取得本機裝置的系統產品名稱。 只有在SystemSku的值是空的時,才使用SystemProductName

SystemSku

取得本機裝置的系統 SKU。

適用於

另請參閱