GetPathRoot似乎不支持UNC路径.以下代码的结果只是修剪file.txt
string root = Path.GetPathRoot("\\servername.pvt\sub dir\file.txt");
什么是好的解决方法?
.net
.net ×1