Go homepage(回首页)
Upload pictures (上传图片)
Write articles (发文字帖)

The author:(作者)aaa
published in(发表于) 2013/12/11 8:29:08
ASP.NET技巧:一个在移动设备中获取路径的方法_.net资料_编程技术

ASP.NET技巧:一个在移动设备中获取路径的方法_.net资料_编程技术-你的首页-uuhomepage.com
 一个在移动设备中获取路径的常用方法:
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 获得应用程序的基目录,然后与文件与装配,就得到了绝对路径。





If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)





QQ:154298438
QQ:417480759