包含合并的路径的字符串。如果指定的路径之一是零长度字符串,则该方法返回其他路径。如果 path2 包含绝对路径,则该方法返回 path2。

System.Web.HttpServerUtility util = HttpContext.Current.Server;
string path = util.MapPath(string.Format(""));
string fileName = System.IO.Path.Combine(path, "namedconnection.xml");

相关文章:

  • 2022-12-23
  • 2021-10-21
  • 2021-11-23
  • 2021-06-11
  • 2021-10-26
  • 2021-04-15
  • 2021-06-23
猜你喜欢
  • 2021-08-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
相关资源
相似解决方案