简体   繁体   English

C#检测Iphone插件是否

[英]C# Detect if an Iphone plug-in

I'm developing in VS2010/C#.. Can anyone please help me to figure how can I detect when Iphone plug in?? 我正在VS2010 / C#中进行开发。任何人都可以帮助我确定如何检测何时插入Iphone?

I've tried this 我已经试过了

System.IO.DriveInfo[] drives = System.IO.DriveInfo.GetDrives();
        try
        {


            foreach (System.IO.DriveInfo drive in drives)
            {
                if (drive.DriveType == DriveType.Removable)
                {
                    do something
                }
            }

But DriveType.Removable not includes the Iphone device, It seems that the Iphone is "Internal Storage" and not a removable device... 但是DriveType.Removable不包括Iphone设备,似乎Iphone是“内部存储”而不是可移动设备...

Thank you all for your help... 谢谢大家的帮助...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM