/// <summary>
    
/// 检查url链接是否有效
     
/// </summary>
    
/// <param name="strUri"></param>
    
/// <returns></returns>
    public static bool CheckUri(string strUri)
    {
        
try
        {
            System.Net.HttpWebRequest.Create(strUri).GetResponse();
            
return true;
        }
        
catch
        {
            
return false;
        }
    }

相关文章:

  • 2021-06-13
  • 2021-12-30
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2021-09-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-10
相关资源
相似解决方案