public bool UriExists(string url)
{
try
{
new System.Net.WebClient().OpenRead(url);
return true;
}
catch (System.Net.WebException)
{
return false;
}
}
时间: 2024-10-26 01:17:05