[英]What is the Windows CE equivalent of Application.StartupPath?
I'm adding code to a program created to be used on Windows CE. 我正在向要在Windows CE上使用的程序中添加代码。 My current problem is that Application.StartupPath isn't recognized.
我当前的问题是Application.StartupPath无法识别。 What is the Equivalent line of code I need to use?
我需要使用的等效代码行是什么?
您可以通过以下方式检索它
Path.GetDirectoryName (Assembly.GetExecutingAssembly ().GetName ().CodeBase);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.