在Smartphone上使用System.IO的问题。

6z6 2005-11-23 02:51:31
string Dir = Directory.GetCurrentDirectory();
我在PC机器可以执行,Smartphone上却说不支持,我察看对象
public static System.String GetCurrentDirectory ( )
System.IO.Directory 的成员

摘要:
Gets the current working directory of the application.

获取应用程序当前目录

请问在Smartphone上怎么获取应用程序当前目录?


...全文
123 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
6z6 2005-11-28
  • 打赏
  • 举报
回复
可以的,不过好像要稍微改改在Smartphone上才能用。
vicky8081 2005-11-24
  • 打赏
  • 举报
回复
在ppc上我用的是以下方法,不知在Smartphone上对吗
// 获得当前路径
private string GetCurrentDirectory()
{
return Path.GetDirectoryName( Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName );
}

7,655

社区成员

发帖
与我相关
我的任务
社区描述
Windows Phone是微软发布的一款手机操作系统,它将微软旗下的Xbox LIVE游戏、Zune音乐与独特的视频体验整合至手机中。
社区管理员
  • Windows客户端开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧