Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

EnumerationOptions: Erreur de compilation

Modifier,ou,créer,une,source,d'événement
{filelink=15681}

using System;
using System.Management;
public class RemoteConnect
{
    public static void Main()
    {
        EnumerationOptions opt = new EnumerationOptions();
        opt.EnumerateDeep = true;
        ManagementClass c = new ManagementClass("CIM_Service");
        foreach (ManagementObject o in c.GetInstances(opt))
            Console.WriteLine(o["Name"]);
    }
}

No comments yet.

Leave a Comment