if( System.IO.Path.GetInvalidPathChars().Any (p =>uniqueName.Contains(p) ))
    {
        //文件名 包含非法字符
    } 

 

相关文章:

  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
  • 2021-08-31
相关资源
相似解决方案