WEB开发网
开发学院WEB开发ASP.NET 一个在移动设备中获取路径的方法 阅读

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

 2006-11-09 17:16:28 来源:WEB开发网   
核心提示:一个在移动设备中获取路径的常用方法:public string GetFileName(){ return System.IO.Path.Combine(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().
一个在移动设备中获取路径的常用方法:
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

Tags:一个 移动 设备

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接