C# 未处理 System.Management.ManagementException HResult=-2146233087 Message=常规故障 Source=System.M
报错处代码:publicstaticboolGetPrinterStatus(stringPrinterName,refstringstrRet){//获取状态字符串,并用?作为分割符ManagementClassmanagementClass=newManagementClass("Win32_Printer");ManagementObjectCollectionmanagementObjec