... 检查 InnerException :如果它是 WebException ,那么您可以检查 WebException.Status 属性,例如 WebExceptionStatus.NameResolutionFailure 应该指示DNS解决问题.
確定! 回上一頁