设为首页
加入收藏
站内地图
旧版入口
当前位置:首页 > 站长学院 > 网络编程 > ASP.NET

一个在移动设备中获取路径的方法

作者:佚名 出处:网络转载 时间:11-10 点击:

内容载入中...
一个在移动设备中获取路径的常用方法:
public string GetFileName()
{
  return System.IO.Path.Combine(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase),"filename");

    在移动设备开发中,路径都使用绝对路径。
System.IO.Path.GetDirectoryName (System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase 获得应用程序的基目录,然后与文件与装配,就得到了绝对路径。
http://www.cnblogs.com/yxfqust/archive/2006/11/08/553878.html
收藏本文:
】【打印页面】【推荐给朋友】【关闭窗口

站长学院

推荐信息