EasClientDeviceInformation EasClientDeviceInformation EasClientDeviceInformation EasClientDeviceInformation Class

Definition

Provides the app with the ability to retrieve device information from the local device.

For an example of how mail clients can retrieve device information, see the EAS policies for mail clients sample.

public : sealed class EasClientDeviceInformation : IEasClientDeviceInformation, IEasClientDeviceInformation2
public sealed class EasClientDeviceInformation : IEasClientDeviceInformation, IEasClientDeviceInformation2
Public NotInheritable Class EasClientDeviceInformation Implements IEasClientDeviceInformation, IEasClientDeviceInformation2
var easClientDeviceInformation = new easClientDeviceInformation();
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

EasClientDeviceInformation() EasClientDeviceInformation() EasClientDeviceInformation() EasClientDeviceInformation()

Creates an instance of an object that allows the caller app to retrieve device information from the local device.

public : EasClientDeviceInformation()
public EasClientDeviceInformation()
Public Sub New()
var easClientDeviceInformation = new easClientDeviceInformation();

Properties

FriendlyName FriendlyName FriendlyName FriendlyName

Returns the friendly name of the local device.

public : Platform::String FriendlyName { get; }
public string FriendlyName { get; }
Public ReadOnly Property FriendlyName As string
var string = easClientDeviceInformation.friendlyName;
Value
Platform::String string string string

The friendly name of the local device. This value might come from a NetBIOS computer name. The value must be less than 1024 characters.

Id Id Id Id

Returns the identifier of the local device.

public : Platform::Guid Id { get; }
public Guid Id { get; }
Public ReadOnly Property Id As Guid
var guid = easClientDeviceInformation.id;
Value
Platform::Guid Guid Guid Guid

The identifier of the local device. The value range is 16 bytes.

Remarks

UWP apps only. The Id property represents the DeviceId using the GUID truncated from the first 16 bytes of the SHA256 hash of the MachineID, User SID, and Package Family Name where the MachineID uses the SID of the local users group. Each component of the GUID is returned in network byte order.

OperatingSystem OperatingSystem OperatingSystem OperatingSystem

Returns the operating system of the local device.

public : Platform::String OperatingSystem { get; }
public string OperatingSystem { get; }
Public ReadOnly Property OperatingSystem As string
var string = easClientDeviceInformation.operatingSystem;
Value
Platform::String string string string

The operating system of the local device.

SystemFirmwareVersion SystemFirmwareVersion SystemFirmwareVersion SystemFirmwareVersion

Returns the system firmware version of the local device.

public : Platform::String SystemFirmwareVersion { get; }
public string SystemFirmwareVersion { get; }
Public ReadOnly Property SystemFirmwareVersion As string
var string = easClientDeviceInformation.systemFirmwareVersion;
Value
Platform::String string string string

The system firmware version of the local device.

Remarks

Note

The SystemFirmwareVersion property is retrieved from the registry. If the registry can't be read for any reason, SystemFirmwareVersion is returned as an empty string.

SystemHardwareVersion SystemHardwareVersion SystemHardwareVersion SystemHardwareVersion

Returns the system hardware version of the local device.

public : Platform::String SystemHardwareVersion { get; }
public string SystemHardwareVersion { get; }
Public ReadOnly Property SystemHardwareVersion As string
var string = easClientDeviceInformation.systemHardwareVersion;
Value
Platform::String string string string

The system hardware version of the local device.

Remarks

Note

The SystemHardwareVersion property is retrieved from the registry. If the registry can't be read for any reason, SystemHardwareVersion is returned as an empty string.

SystemManufacturer SystemManufacturer SystemManufacturer SystemManufacturer

Returns the system manufacturer of the local device. Use this only if the SystemSku is empty.

public : Platform::String SystemManufacturer { get; }
public string SystemManufacturer { get; }
Public ReadOnly Property SystemManufacturer As string
var string = easClientDeviceInformation.systemManufacturer;
Value
Platform::String string string string

The system manufacturer of the local device. The value must be less than 1024 characters.

Remarks

UWP apps only. SystemManufacturer is retrieved from the registry. If the registry can't be read for any reason, SystemManufacturer is returned as an empty string.

SystemProductName SystemProductName SystemProductName SystemProductName

Returns the system product name of the local device.

public : Platform::String SystemProductName { get; }
public string SystemProductName { get; }
Public ReadOnly Property SystemProductName As string
var string = easClientDeviceInformation.systemProductName;
Value
Platform::String string string string

The system product name of the local device. The value must be less than 1024 characters.

Remarks

UWP apps only. Use this only if the SystemSku is empty. SystemProductName is retrieved from the registry. If the registry can't be read for any reason, SystemProductName is returned as an empty string.

SystemSku SystemSku SystemSku SystemSku

Returns the system SKU of the local device.

public : Platform::String SystemSku { get; }
public string SystemSku { get; }
Public ReadOnly Property SystemSku As string
var string = easClientDeviceInformation.systemSku;
Value
Platform::String string string string

The system SKU of the local device.

Remarks

UWP apps only. The SystemSku property is retrieved from the registry. If the registry can't be read for any reason, SystemSku is returned as an empty string. If SystemSku is not empty, SystemSku is recommended to be used as the Model string. Otherwise, you can use SystemManufacturer and SystemProductName to compose SystemSku.

See Also