什么是 GetFullPath(String, String) 重载?

What is the GetFullPath(String, String) overload?

Path.GetFullPath(String) method 的文档包含以下文本(强调我的):

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. [...] To return a deterministic path, call the GetFullPath(String, String) overload. [...]

我检查了文档和 IntelliSense,但我找不到带两个参数的 GetFullPath 重载(.net 4.8,完整的经典框架)。这是一个文档错误(也许他们的意思是 Path.Combine(String, String)?)还是我错过了什么?

它是在 .NET Core 2.1 / .NET Standard 2.1 中引入的。文档网站似乎不够聪明,无法隐藏仅与较新的 .NET 版本相关的部分文档。

See the docs for GetFullPath(String, String) here.

您可以select在左上角查看文档的 .NET 版本: