HardwareInfo

Ecng.Interop

Provides methods to generate a hardware-based identifier.

メソッド

GetId
public static string GetId()
result = HardwareInfo.GetId()

Gets the hardware identifier.

戻り値: A string representing the hardware identifier.

GetIdAsync
public static Task<string> GetIdAsync(CancellationToken cancellationToken)
result = HardwareInfo.GetIdAsync(cancellationToken)

Asynchronously gets the hardware identifier.

cancellationToken
A token to monitor for cancellation requests.

戻り値: A task that represents the asynchronous operation. The task result contains a string representing the hardware identifier.

LsblkRegex
private static Regex LsblkRegex()
result = HardwareInfo.LsblkRegex()