示例#1
0
 public static IEnumerable <ManagementAgent> GetManagementAgents()
 {
     foreach (KeyValuePair <Guid, string> k in GetManagementAgentNameAndIDPairs())
     {
         yield return(ManagementAgent.GetManagementAgent(k.Key));
     }
 }
示例#2
0
 public static ManagementAgent GetManagementAgent(string name)
 {
     return(ManagementAgent.GetManagementAgent(ManagementAgent.MANameToID(name)));
 }