All articles(网络文学目录) All Pictures(图片目录) All Softwares(软件目录)

 
ASP.NET技巧:一个在移动设备中获取路径的方法_.net资料_编程技术

Writer: aaa Article type: Programming skills(编程技巧) Time: 2013/12/11 8:29:08 Browse times: 354 Comment times: 0

ASP.NET技巧:一个在移动设备中获取路径的方法_.net资料_编程技术


Head photo

Go homepage
Upload pictures
Write articles

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 获得应用程序的基目录,然后与文件与装配,就得到了绝对路径。




There are 0 records,
Comment:
Must be registered users to comment(必须是注册用户才能发表评论)

Disclaimer Privacy Policy About us Site Map
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.