UtilDevicesComputerHardwareIdFromWmi Property
Gets a unique computer hardware identifier (CHID) that matches the current computer.
This identifier is obtained through the UUID field from Win32_ComputerSystemProduct WMI class.
Note that in some exceptional scenarios the identifier could be empty.
So it is responsibility of the programmer to verify that the value is not empty, and in which case
is recommended to use the
ComputerHardwareIdFromMicrosoftHwIdTypeComputerHardwareIdMicrosoftType property instead.
Namespace: DevCase.Core.IO.DevicesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Guid ComputerHardwareIdFromWmi { get; }
Public Shared ReadOnly Property ComputerHardwareIdFromWmi As Guid
Get
Dim value As Guid
value = UtilDevices.ComputerHardwareIdFromWmi
public:
static property Guid ComputerHardwareIdFromWmi {
Guid get ();
}
static member ComputerHardwareIdFromWmi : Guid with get
No code example is currently available or this language may not be supported.
Property Value
Guid
The resulting unique computer hardware identifier (CHID) that matches the current computer.
This is a code example.
No code example is currently available or this language may not be supported.
Dim chid As GUID = ComputerHardwareId()
If chid = Guid.Empty Then
chid = ComputerHardwareIdFromMicrosoftHwIdType(ComputerHardwareIdMicrosoftType.HardwareID_3)
End If
Console.WriteLine(hwid)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.