相关疑难解决方法(0)

UNC路径的System.IO.Path.GetPathRoot变通方法

GetPathRoot似乎不支持UNC路径.以下代码的结果只是修剪file.txt

string root = Path.GetPathRoot("\\servername.pvt\sub dir\file.txt");
Run Code Online (Sandbox Code Playgroud)

什么是好的解决方法?

.net

0
推荐指数
1
解决办法
3643
查看次数

标签 统计

.net ×1