[英]What is the GetFullPath(String, String) overload?
The documentation of the Path.GetFullPath(String) method contains the following text (emphasis mine): Path.GetFullPath(String) 方法的文档包含以下文本(强调我的):
Important
重要的
If
path
is a relative path, this overload returns a fully qualified path that can be based on the current drive and current directory.如果
path
是相对路径,则此重载将返回可以基于当前驱动器和当前目录的完全限定路径。 [...] To return a deterministic path, call the GetFullPath(String, String) overload.[...] 要返回确定性路径,请调用GetFullPath(String, String)重载。 [...]
[...]
I checked the documentation and IntelliSense, and I just can't find a GetFullPath overload that takes two parameters (.net 4.8, full classic framework).我检查了文档和 IntelliSense,只是找不到带有两个参数的 GetFullPath 重载(.net 4.8,完整的经典框架)。 Is this a documentation bug (and maybe they meant
Path.Combine(String, String)
instead?) or did I miss something?这是一个文档错误(也许他们的意思是
Path.Combine(String, String)
?)还是我错过了什么?
It was introduced in .NET Core 2.1 / .NET Standard 2.1.它是在 .NET Core 2.1 / .NET 标准 2.1 中引入的。 It seems that the docs website isn't clever enough to hide parts of the documentation which are only relevant to newer .NET versions.
似乎文档网站不够聪明,无法隐藏仅与较新的 .NET 版本相关的文档部分。
See the docs for GetFullPath(String, String)
here . 在此处查看
GetFullPath(String, String)
的文档。
You can select which .NET Version to view the docs for in the top left:您可以 select 哪个 .NET 版本查看左上角的文档:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.