先引用Symbol.ResourceCoordination
然後引用命名空間
using System;
using System.Security.Cryptography;
using System.IO;
以下為類程序
/// <summary>
/// 獲取設備id
/// </summary>
/// <returns></returns>
public static string GetDevid()
{
string uuid="";
Symbol.ResourceCoordination.TerminalInfo terminalInfo = new Symbol.ResourceCoordination.TerminalInfo();
foreach (byte b in terminalInfo.UniqueUnitID)
uuid += b.ToString("X2");
return uuid;
}