开发者

DriveInfo Class

开发者 https://www.devze.com 2023-01-04 02:09 出处:网络
How to I execute the following code in silverlight 3. DriveInfo[] drives = DriveInfo.GetDrives(); foreach (DriveInfo drive in drives)

How to I execute the following code in silverlight 3.

    DriveInfo[] drives = DriveInfo.GetDrives();        
    foreach (DriveInfo drive in drives)
    {
       if (drive.IsReady)
       { }   
    }
开发者_运维技巧

As it is giving me error and when I try to add the reference for the system.IO I can't fine any reference for that Dll.Thanks in advance


Silverlight is executing in the browser, and can execute on platforms as diverse as Windows, OSX, Linux, etc.

I'd be really surprised is something as low-level as drive info would operate as it would on a Windows native forms app.

0

精彩评论

暂无评论...
验证码 换一张
取 消