WinCE下 获取当前路径
public string prmPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase);
本文介绍了一种在WinCE环境下获取当前程序运行路径的方法。通过使用C#代码,调用Path.GetDirectoryName结合Assembly.GetExecutingAssembly来获取当前执行程序的路径。
WinCE下 获取当前路径
public string prmPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase);

被折叠的 条评论
为什么被折叠?