zoukankan      html  css  js  c++  java
  • .NET中三种获取当前路径的代码,经常用到的Web变成,WinForm编程,Windows Mobile 编程

  •  .NET中三种获取当前路径的代码,经常用到的Web变成,WinForm编程,Windows Mobile 编程
  • //Web编程
  • HttpContext.Current.Server.MapPath("FileName")
  • System.Web.HttpContext.Current.Request.Path
  • //Windows编程
  • System.Environment.CurrentDirectory
  • //Mobile编程
  • Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); 
查看全文
  • 相关阅读:
    Swift
    Swift
    Swift
    Swift
    Cocos2d Lua 越来越小样本 内存游戏
    Android组件系列----ContentProvider内容提供商【5】
    看你的门-攻击服务器(4)-HTTP参数注入攻击
    图片缩放中心
    正确lua简单的扩展,可以加速相关C++数据。
    epoll()无论涉及wait队列分析
  • 原文地址:https://www.cnblogs.com/millen/p/1500302.html
  • Copyright © 2011-2022 走看看