Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以只打印 System.Net.WebException 的第一部分?我想用它来打印第一部分,例如:
“远程服务器返回错误:(503) 服务器不可用。”
跳过所有其他的,这可能吗?
Exception.Message returns a string