最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

c#使用wmi查詢usb設(shè)備信息示例

 更新時間:2014年01月29日 09:54:05   作者:  
這篇文章主要介紹了c#使用wmi查詢usb設(shè)備信息示例,大家參考使用吧

開發(fā)環(huán)境:Visual Studio V2010 .NET Framework 4 Client Profile

復(fù)制代碼 代碼如下:

using System;
using System.Management;
using System.Text.RegularExpressions;
using System.Collections.Generic;

namespace Splash.IO.PORTS
{
/// <summary>
/// 即插即用設(shè)備信息結(jié)構(gòu)
/// </summary>
public struct PnPEntityInfo
{
public String PNPDeviceID;  // 設(shè)備ID
public String Name; // 設(shè)備名稱
public String Description;  // 設(shè)備描述
public String Service;  // 服務(wù)
public String Status;   // 設(shè)備狀態(tài)
public UInt16 VendorID; // 供應(yīng)商標(biāo)識
public UInt16 ProductID;// 產(chǎn)品編號
public Guid ClassGuid;  // 設(shè)備安裝類GUID
}

/// <summary>
/// 基于WMI獲取USB設(shè)備信息
/// </summary>
public partial class USB

#region UsbDevice
/// <summary>
/// 獲取所有的USB設(shè)備實(shí)體(過濾沒有VID和PID的設(shè)備)
/// </summary>
public static PnPEntityInfo[] AllUsbDevices
{
get
{
return WhoUsbDevice(UInt16.MinValue, UInt16.MinValue, Guid.Empty);
}
}

/// <summary>
/// 查詢USB設(shè)備實(shí)體(設(shè)備要求有VID和PID)
/// </summary>
/// <param name="VendorID">供應(yīng)商標(biāo)識,MinValue忽視</param>
/// <param name="ProductID">產(chǎn)品編號,MinValue忽視</param>
/// <param name="ClassGuid">設(shè)備安裝類Guid,Empty忽視</param>
/// <returns>設(shè)備列表</returns>
public static PnPEntityInfo[] WhoUsbDevice(UInt16 VendorID, UInt16 ProductID, Guid ClassGuid)
{
List<PnPEntityInfo> UsbDevices = new List<PnPEntityInfo>();

// 獲取USB控制器及其相關(guān)聯(lián)的設(shè)備實(shí)體
ManagementObjectCollection USBControllerDeviceCollection = new ManagementObjectSearcher("SELECT * FROM Win32_USBControllerDevice").Get();
if (USBControllerDeviceCollection != null)
{
foreach (ManagementObject USBControllerDevice in USBControllerDeviceCollection)
{   // 獲取設(shè)備實(shí)體的DeviceID
String Dependent = (USBControllerDevice["Dependent"] as String).Split(new Char[] { '=' })[1];

// 過濾掉沒有VID和PID的USB設(shè)備
Match match = Regex.Match(Dependent, "VID_[0-9|A-F]{4}&PID_[0-9|A-F]{4}");
if (match.Success)
{
UInt16 theVendorID = Convert.ToUInt16(match.Value.Substring(4, 4), 16);   // 供應(yīng)商標(biāo)識
if (VendorID != UInt16.MinValue && VendorID != theVendorID) continue;

UInt16 theProductID = Convert.ToUInt16(match.Value.Substring(13, 4), 16); // 產(chǎn)品編號
if (ProductID != UInt16.MinValue && ProductID != theProductID) continue;

ManagementObjectCollection PnPEntityCollection = new ManagementObjectSearcher("SELECT * FROM Win32_PnPEntity WHERE DeviceID=" + Dependent).Get();
if (PnPEntityCollection != null)
{
foreach (ManagementObject Entity in PnPEntityCollection)
{
Guid theClassGuid = new Guid(Entity["ClassGuid"] as String);// 設(shè)備安裝類GUID
if (ClassGuid != Guid.Empty && ClassGuid != theClassGuid) continue;

PnPEntityInfo Element;
Element.PNPDeviceID = Entity["PNPDeviceID"] as String;  // 設(shè)備ID
Element.Name = Entity["Name"] as String;// 設(shè)備名稱
Element.Description = Entity["Description"] as String;  // 設(shè)備描述
Element.Service = Entity["Service"] as String;  // 服務(wù)
Element.Status = Entity["Status"] as String;// 設(shè)備狀態(tài)
Element.VendorID = theVendorID; // 供應(yīng)商標(biāo)識
Element.ProductID = theProductID;   // 產(chǎn)品編號
Element.ClassGuid = theClassGuid;   // 設(shè)備安裝類GUID

UsbDevices.Add(Element);
}
}
}
}
}

if (UsbDevices.Count == 0) return null; else return UsbDevices.ToArray();
}

/// <summary>
/// 查詢USB設(shè)備實(shí)體(設(shè)備要求有VID和PID)
/// </summary>
/// <param name="VendorID">供應(yīng)商標(biāo)識,MinValue忽視</param>
/// <param name="ProductID">產(chǎn)品編號,MinValue忽視</param>
/// <returns>設(shè)備列表</returns>
public static PnPEntityInfo[] WhoUsbDevice(UInt16 VendorID, UInt16 ProductID)
{
return WhoUsbDevice(VendorID, ProductID, Guid.Empty);
}

/// <summary>
/// 查詢USB設(shè)備實(shí)體(設(shè)備要求有VID和PID)
/// </summary>
/// <param name="ClassGuid">設(shè)備安裝類Guid,Empty忽視</param>
/// <returns>設(shè)備列表</returns>
public static PnPEntityInfo[] WhoUsbDevice(Guid ClassGuid)
{
return WhoUsbDevice(UInt16.MinValue, UInt16.MinValue, ClassGuid);
}

/// <summary>
/// 查詢USB設(shè)備實(shí)體(設(shè)備要求有VID和PID)
/// </summary>
/// <param name="PNPDeviceID">設(shè)備ID,可以是不完整信息</param>
/// <returns>設(shè)備列表</returns>
public static PnPEntityInfo[] WhoUsbDevice(String PNPDeviceID)
{
List<PnPEntityInfo> UsbDevices = new List<PnPEntityInfo>();

// 獲取USB控制器及其相關(guān)聯(lián)的設(shè)備實(shí)體
ManagementObjectCollection USBControllerDeviceCollection = new ManagementObjectSearcher("SELECT * FROM Win32_USBControllerDevice").Get();
if (USBControllerDeviceCollection != null)
{
foreach (ManagementObject USBControllerDevice in USBControllerDeviceCollection)
{   // 獲取設(shè)備實(shí)體的DeviceID
String Dependent = (USBControllerDevice["Dependent"] as String).Split(new Char[] { '=' })[1];
if (!String.IsNullOrEmpty(PNPDeviceID))
{   // 注意:忽視大小寫
if (Dependent.IndexOf(PNPDeviceID, 1, PNPDeviceID.Length - 2, StringComparison.OrdinalIgnoreCase) == -1) continue;
}

// 過濾掉沒有VID和PID的USB設(shè)備
Match match = Regex.Match(Dependent, "VID_[0-9|A-F]{4}&PID_[0-9|A-F]{4}");
if (match.Success)
{
ManagementObjectCollection PnPEntityCollection = new ManagementObjectSearcher("SELECT * FROM Win32_PnPEntity WHERE DeviceID=" + Dependent).Get();
if (PnPEntityCollection != null)
{
foreach (ManagementObject Entity in PnPEntityCollection)
{
PnPEntityInfo Element;
Element.PNPDeviceID = Entity["PNPDeviceID"] as String;  // 設(shè)備ID
Element.Name = Entity["Name"] as String;// 設(shè)備名稱
Element.Description = Entity["Description"] as String;  // 設(shè)備描述
Element.Service = Entity["Service"] as String;  // 服務(wù)
Element.Status = Entity["Status"] as String;// 設(shè)備狀態(tài)
Element.VendorID = Convert.ToUInt16(match.Value.Substring(4, 4), 16);   // 供應(yīng)商標(biāo)識  
Element.ProductID = Convert.ToUInt16(match.Value.Substring(13, 4), 16); // 產(chǎn)品編號 // 產(chǎn)品編號
Element.ClassGuid = new Guid(Entity["ClassGuid"] as String);// 設(shè)備安裝類GUID

UsbDevices.Add(Element);
}
}
}
}
}

if (UsbDevices.Count == 0) return null; else return UsbDevices.ToArray();
}

/// <summary>
/// 根據(jù)服務(wù)定位USB設(shè)備
/// </summary>
/// <param name="ServiceCollection">要查詢的服務(wù)集合</param>
/// <returns>設(shè)備列表</returns>
public static PnPEntityInfo[] WhoUsbDevice(String[] ServiceCollection)
{
if (ServiceCollection == null || ServiceCollection.Length == 0)
return WhoUsbDevice(UInt16.MinValue, UInt16.MinValue, Guid.Empty);

List<PnPEntityInfo> UsbDevices = new List<PnPEntityInfo>();

// 獲取USB控制器及其相關(guān)聯(lián)的設(shè)備實(shí)體
ManagementObjectCollection USBControllerDeviceCollection = new ManagementObjectSearcher("SELECT * FROM Win32_USBControllerDevice").Get();
if (USBControllerDeviceCollection != null)
{
foreach (ManagementObject USBControllerDevice in USBControllerDeviceCollection)
{   // 獲取設(shè)備實(shí)體的DeviceID
String Dependent = (USBControllerDevice["Dependent"] as String).Split(new Char[] { '=' })[1];

// 過濾掉沒有VID和PID的USB設(shè)備
Match match = Regex.Match(Dependent, "VID_[0-9|A-F]{4}&PID_[0-9|A-F]{4}");
if (match.Success)
{
ManagementObjectCollection PnPEntityCollection = new ManagementObjectSearcher("SELECT * FROM Win32_PnPEntity WHERE DeviceID=" + Dependent).Get();
if (PnPEntityCollection != null)
{
foreach (ManagementObject Entity in PnPEntityCollection)
{
String theService = Entity["Service"] as String;  // 服務(wù)
if (String.IsNullOrEmpty(theService)) continue;

foreach (String Service in ServiceCollection)
{   // 注意:忽視大小寫
if (String.Compare(theService, Service, true) != 0) continue;

PnPEntityInfo Element;
Element.PNPDeviceID = Entity["PNPDeviceID"] as String;  // 設(shè)備ID
Element.Name = Entity["Name"] as String;// 設(shè)備名稱
Element.Description = Entity["Description"] as String;  // 設(shè)備描述
Element.Service = theService;   // 服務(wù)
Element.Status = Entity["Status"] as String;// 設(shè)備狀態(tài)
Element.VendorID = Convert.ToUInt16(match.Value.Substring(4, 4), 16);   // 供應(yīng)商標(biāo)識  
Element.ProductID = Convert.ToUInt16(match.Value.Substring(13, 4), 16); // 產(chǎn)品編號
Element.ClassGuid = new Guid(Entity["ClassGuid"] as String);// 設(shè)備安裝類GUID

UsbDevices.Add(Element);
break;
}
}
}
}
}
}

if (UsbDevices.Count == 0) return null; else return UsbDevices.ToArray();
}
#endregion

#region PnPEntity
/// <summary>
/// 所有即插即用設(shè)備實(shí)體(過濾沒有VID和PID的設(shè)備)
/// </summary>
public static PnPEntityInfo[] AllPnPEntities
{
get
{
return WhoPnPEntity(UInt16.MinValue, UInt16.MinValue, Guid.Empty);
}
}

/// <summary>
/// 根據(jù)VID和PID及設(shè)備安裝類GUID定位即插即用設(shè)備實(shí)體
/// </summary>
/// <param name="VendorID">供應(yīng)商標(biāo)識,MinValue忽視</param>
/// <param name="ProductID">產(chǎn)品編號,MinValue忽視</param>
/// <param name="ClassGuid">設(shè)備安裝類Guid,Empty忽視</param>
/// <returns>設(shè)備列表</returns>
/// <remarks>
/// HID:{745a17a0-74d3-11d0-b6fe-00a0c90f57da}
/// Imaging Device:{6bdd1fc6-810f-11d0-bec7-08002be2092f}
/// Keyboard:{4d36e96b-e325-11ce-bfc1-08002be10318}
/// Mouse:{4d36e96f-e325-11ce-bfc1-08002be10318}
/// Network Adapter:{4d36e972-e325-11ce-bfc1-08002be10318}
/// USB:{36fc9e60-c465-11cf-8056-444553540000}
/// </remarks>
public static PnPEntityInfo[] WhoPnPEntity(UInt16 VendorID, UInt16 ProductID, Guid ClassGuid)
{
List<PnPEntityInfo> PnPEntities = new List<PnPEntityInfo>();

// 枚舉即插即用設(shè)備實(shí)體
String VIDPID;
if (VendorID == UInt16.MinValue)
{
if (ProductID == UInt16.MinValue)
VIDPID = "'%VID[_]____&PID[_]____%'";
else
VIDPID = "'%VID[_]____&PID[_]" + ProductID.ToString("X4") + "%'";  
}
else
{
if (ProductID == UInt16.MinValue)
VIDPID = "'%VID[_]" + VendorID.ToString("X4") + "&PID[_]____%'";
else
VIDPID = "'%VID[_]" + VendorID.ToString("X4") + "&PID[_]" + ProductID.ToString("X4") + "%'";
}

String QueryString;
if (ClassGuid == Guid.Empty)
QueryString = "SELECT * FROM Win32_PnPEntity WHERE PNPDeviceID LIKE" + VIDPID;
else
QueryString = "SELECT * FROM Win32_PnPEntity WHERE PNPDeviceID LIKE" + VIDPID + " AND ClassGuid='" + ClassGuid.ToString("B") + "'";

ManagementObjectCollection PnPEntityCollection = new ManagementObjectSearcher(QueryString).Get();
if (PnPEntityCollection != null)
{
foreach (ManagementObject Entity in PnPEntityCollection)
{
String PNPDeviceID = Entity["PNPDeviceID"] as String;
Match match = Regex.Match(PNPDeviceID, "VID_[0-9|A-F]{4}&PID_[0-9|A-F]{4}");
if (match.Success)
{
PnPEntityInfo Element;

Element.PNPDeviceID = PNPDeviceID;  // 設(shè)備ID
Element.Name = Entity["Name"] as String;// 設(shè)備名稱
Element.Description = Entity["Description"] as String;  // 設(shè)備描述
Element.Service = Entity["Service"] as String;  // 服務(wù)
Element.Status = Entity["Status"] as String;// 設(shè)備狀態(tài)
Element.VendorID = Convert.ToUInt16(match.Value.Substring(4, 4), 16);   // 供應(yīng)商標(biāo)識
Element.ProductID = Convert.ToUInt16(match.Value.Substring(13, 4), 16); // 產(chǎn)品編號
Element.ClassGuid = new Guid(Entity["ClassGuid"] as String);// 設(shè)備安裝類GUID

PnPEntities.Add(Element);
}
}
}

if (PnPEntities.Count == 0) return null; else return PnPEntities.ToArray();


/// <summary>
/// 根據(jù)VID和PID定位即插即用設(shè)備實(shí)體
/// </summary>
/// <param name="VendorID">供應(yīng)商標(biāo)識,MinValue忽視</param>
/// <param name="ProductID">產(chǎn)品編號,MinValue忽視</param>
/// <returns>設(shè)備列表</returns>
public static PnPEntityInfo[] WhoPnPEntity(UInt16 VendorID, UInt16 ProductID)
{
return WhoPnPEntity(VendorID, ProductID, Guid.Empty);
}

/// <summary>
/// 根據(jù)設(shè)備安裝類GUID定位即插即用設(shè)備實(shí)體
/// </summary>
/// <param name="ClassGuid">設(shè)備安裝類Guid,Empty忽視</param>
/// <returns>設(shè)備列表</returns>
public static PnPEntityInfo[] WhoPnPEntity(Guid ClassGuid)
{
return WhoPnPEntity(UInt16.MinValue, UInt16.MinValue, ClassGuid);
}

/// <summary>
/// 根據(jù)設(shè)備ID定位設(shè)備
/// </summary>
/// <param name="PNPDeviceID">設(shè)備ID,可以是不完整信息</param>
/// <returns>設(shè)備列表</returns>
/// <remarks>
/// 注意:對于下劃線,需要寫成“[_]”,否則視為任意字符
/// </remarks>
public static PnPEntityInfo[] WhoPnPEntity(String PNPDeviceID)
{
List<PnPEntityInfo> PnPEntities = new List<PnPEntityInfo>();

// 枚舉即插即用設(shè)備實(shí)體
String QueryString;
if (String.IsNullOrEmpty(PNPDeviceID))
{
QueryString = "SELECT * FROM Win32_PnPEntity WHERE PNPDeviceID LIKE '%VID[_]____&PID[_]____%'";
}
else
{   // LIKE子句中有反斜杠字符將會引發(fā)WQL查詢異常
QueryString = "SELECT * FROM Win32_PnPEntity WHERE PNPDeviceID LIKE '%" + PNPDeviceID.Replace('\\', '_') + "%'";
}

ManagementObjectCollection PnPEntityCollection = new ManagementObjectSearcher(QueryString).Get();
if (PnPEntityCollection != null)
{
foreach (ManagementObject Entity in PnPEntityCollection)
{
String thePNPDeviceID = Entity["PNPDeviceID"] as String;
Match match = Regex.Match(thePNPDeviceID, "VID_[0-9|A-F]{4}&PID_[0-9|A-F]{4}");
if (match.Success)
{
PnPEntityInfo Element;

Element.PNPDeviceID = thePNPDeviceID;   // 設(shè)備ID
Element.Name = Entity["Name"] as String;// 設(shè)備名稱
Element.Description = Entity["Description"] as String;  // 設(shè)備描述
Element.Service = Entity["Service"] as String;  // 服務(wù)
Element.Status = Entity["Status"] as String;// 設(shè)備狀態(tài)
Element.VendorID = Convert.ToUInt16(match.Value.Substring(4, 4), 16);   // 供應(yīng)商標(biāo)識
Element.ProductID = Convert.ToUInt16(match.Value.Substring(13, 4), 16); // 產(chǎn)品編號
Element.ClassGuid = new Guid(Entity["ClassGuid"] as String);// 設(shè)備安裝類GUID

PnPEntities.Add(Element);
}
}
}

if (PnPEntities.Count == 0) return null; else return PnPEntities.ToArray();
}

/// <summary>
/// 根據(jù)服務(wù)定位設(shè)備
/// </summary>
/// <param name="ServiceCollection">要查詢的服務(wù)集合,null忽視</param>
/// <returns>設(shè)備列表</returns>
/// <remarks>
/// 跟服務(wù)相關(guān)的類:
/// Win32_SystemDriverPNPEntity
/// Win32_SystemDriver
/// </remarks>
public static PnPEntityInfo[] WhoPnPEntity(String[] ServiceCollection)
{
if (ServiceCollection == null || ServiceCollection.Length == 0)
return WhoPnPEntity(UInt16.MinValue, UInt16.MinValue, Guid.Empty);

List<PnPEntityInfo> PnPEntities = new List<PnPEntityInfo>();

// 枚舉即插即用設(shè)備實(shí)體
String QueryString = "SELECT * FROM Win32_PnPEntity WHERE PNPDeviceID LIKE '%VID[_]____&PID[_]____%'";
ManagementObjectCollection PnPEntityCollection = new ManagementObjectSearcher(QueryString).Get();
if (PnPEntityCollection != null)
{
foreach (ManagementObject Entity in PnPEntityCollection)
{
String PNPDeviceID = Entity["PNPDeviceID"] as String;
Match match = Regex.Match(PNPDeviceID, "VID_[0-9|A-F]{4}&PID_[0-9|A-F]{4}");
if (match.Success)
{
String theService = Entity["Service"] as String;// 服務(wù)
if (String.IsNullOrEmpty(theService)) continue;

foreach (String Service in ServiceCollection)
{   // 注意:忽視大小寫
if (String.Compare(theService, Service, true) != 0) continue;

PnPEntityInfo Element;

Element.PNPDeviceID = PNPDeviceID;  // 設(shè)備ID
Element.Name = Entity["Name"] as String;// 設(shè)備名稱
Element.Description = Entity["Description"] as String;  // 設(shè)備描述
Element.Service = theService;   // 服務(wù)
Element.Status = Entity["Status"] as String;// 設(shè)備狀態(tài)
Element.VendorID = Convert.ToUInt16(match.Value.Substring(4, 4), 16);   // 供應(yīng)商標(biāo)識
Element.ProductID = Convert.ToUInt16(match.Value.Substring(13, 4), 16); // 產(chǎn)品編號
Element.ClassGuid = new Guid(Entity["ClassGuid"] as String);// 設(shè)備安裝類GUID

PnPEntities.Add(Element);
break;
}
}
}
}

if (PnPEntities.Count == 0) return null; else return PnPEntities.ToArray();
}
#endregion
}
}

相關(guān)文章

  • C#?微信支付回調(diào)驗(yàn)簽處理的實(shí)現(xiàn)

    C#?微信支付回調(diào)驗(yàn)簽處理的實(shí)現(xiàn)

    在微信支付中,當(dāng)用戶支付成功后,微信會把相關(guān)支付結(jié)果和用戶信息發(fā)送給商戶,本文就詳細(xì)的介紹了C#?微信支付回調(diào)驗(yàn)簽處理,具有一定的參考價值,感興趣的可以了解一下
    2021-12-12
  • c#中DateTime.Now函數(shù)的使用詳解

    c#中DateTime.Now函數(shù)的使用詳解

    本篇文章對c#中DateTime.Now函數(shù)的使用進(jìn)行了介紹。需要的朋友參考下
    2013-05-05
  • c# Thread類線程常用操作詳解

    c# Thread類線程常用操作詳解

    這篇文章主要介紹了c# Thread類線程常用操作詳解的相關(guān)資料,幫助大家更好的理解和學(xué)習(xí)使用c#,感興趣的朋友可以了解下
    2021-03-03
  • C#與PHP的md5計(jì)算結(jié)果不同的解決方法

    C#與PHP的md5計(jì)算結(jié)果不同的解決方法

    今天在用C#接入我的登錄api發(fā)現(xiàn)了一個問題,登陸的時候無論如何都會出現(xiàn)用戶名和密碼錯誤的問題,后來通過查找排除找的了問題的原因是因?yàn)镃#與PHP的md5計(jì)算結(jié)果不同導(dǎo)致的,下面就來看看如何解決這個問題吧。
    2016-12-12
  • 講解C#面相對象編程中的類與對象的特性與概念

    講解C#面相對象編程中的類與對象的特性與概念

    這篇文章主要介紹了C#面相對象編程中的類與對象的特性與概念,OOP面向?qū)ο笳Z言相對C語言這樣面相過程的語言來說具有類和對象以及方法這樣的特性,需要的朋友可以參考下
    2016-01-01
  • 使用遞歸實(shí)現(xiàn)數(shù)組求和示例分享

    使用遞歸實(shí)現(xiàn)數(shù)組求和示例分享

    這篇文章主要介紹了使用遞歸實(shí)現(xiàn)數(shù)組求和示例,思路是給定一個含有n個元素的整型數(shù)組a,求a中所有元素的和,需要的朋友可以參考下
    2014-03-03
  • c#中object、var和dynamic的區(qū)別小結(jié)

    c#中object、var和dynamic的區(qū)別小結(jié)

    這篇文章主要給大家介紹了關(guān)于c#中object、var和dynamic的區(qū)別,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2020-09-09
  • C#?WPF編程之元素綁定詳解

    C#?WPF編程之元素綁定詳解

    數(shù)據(jù)綁定是一種關(guān)系,該關(guān)系告訴WPF從源對象提取一下信息,并用這些信息設(shè)置目標(biāo)對象的屬性,下面我們就來了解一下WPF編程中元素綁定的相關(guān)知識吧
    2024-04-04
  • C#實(shí)現(xiàn)Winform監(jiān)控文件夾變化以及監(jiān)控文件操作教程

    C#實(shí)現(xiàn)Winform監(jiān)控文件夾變化以及監(jiān)控文件操作教程

    在開發(fā)應(yīng)用程序時,我們可能會因?yàn)閳鼍暗男枰?要對文件系統(tǒng)中的文件或文件夾進(jìn)行實(shí)時監(jiān)測,以便在文件內(nèi)容改變、文件被創(chuàng)建、刪除或重命名時能夠及時做出反應(yīng),今天,我將為大家介紹完整的操作流程,讓你輕松實(shí)現(xiàn)監(jiān)控文件/文件夾變化的功能,需要的朋友可以參考下
    2024-12-12
  • C#設(shè)計(jì)模式之Mediator中介者模式解決程序員的七夕緣分問題示例

    C#設(shè)計(jì)模式之Mediator中介者模式解決程序員的七夕緣分問題示例

    這篇文章主要介紹了C#設(shè)計(jì)模式之Mediator中介者模式解決程序員的七夕緣分問題,簡單說明了中介者模式的定義并結(jié)合七夕緣分問題實(shí)例分析了中介者模式的具體使用技巧,需要的朋友可以參考下
    2017-09-09

最新評論

正镶白旗| 兴文县| 渝中区| 肃宁县| 焉耆| 钦州市| 潼关县| 湟源县| 周至县| 壤塘县| 百色市| 贵溪市| 阳山县| 西充县| 宁津县| 嵩明县| 东光县| 安国市| 凯里市| 金塔县| 青铜峡市| 榆林市| 天峻县| 包头市| 中阳县| 彝良县| 靖边县| 靖西县| 乐陵市| 河东区| 汕头市| 梅河口市| 通海县| 视频| 西林县| 固安县| 沁源县| 富顺县| 阳泉市| 湖州市| 昆明市|