public bool UriExists(string url) { try { new System.Net.WebClient().OpenRead(url); return true; } catch (System.Net.WebException) { return false; } }
本文共 202 字,大约阅读时间需要 1 分钟。
public bool UriExists(string url) { try { new System.Net.WebClient().OpenRead(url); return true; } catch (System.Net.WebException) { return false; } }
转载于:https://www.cnblogs.com/lxshanye/p/3752824.html