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); 
查看全文
  • 相关阅读:
    2020/3/12
    练习题1
    2020/3/26
    2020/3/25
    2020/3/24
    2020/3/23
    应用层
    bzoj3326[SCOI2013]数数
    HEOI2017游记
    bzoj4417[SHOI2013]超级跳马
  • 原文地址:https://www.cnblogs.com/millen/p/1500302.html
  • Copyright © 2011-2022 走看看