Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Afficher les Méthodes de ‘Win32_LogicalDisk’

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

using System;
using System.Management;
 
public class Win32Methode
{
    public static void Main()
    {
 
        ManagementClass c = new ManagementClass("Win32_LogicalDisk");
 
        MethodDataCollection methods = c.Methods;
 
        //Console.WriteLine("Nom du Méthode: ");
        foreach (MethodData method in methods)
        {
            Console.WriteLine("Nom du Méthode: "+method.Name);
        }
 
    }
}

No comments yet.

Leave a Comment