我应该在C#中使用哪些类来获取有关我网络中某台计算机的信息?(比如谁登录该计算机,该计算机上运行的操作系统,打开的端口等)
.net c# network-programming
在c ++中,我可以抛出一个裸字符串作为异常,但在c#中我必须抛出一个Exception.什么是c#相当于在c ++中抛出一个字符串?
Exception
例如,在c ++我可以throw "something bad happened".在c#中,这将是.....?
throw "something bad happened"
c# c++ exception-handling
c# ×2
.net ×1
c++ ×1
exception-handling ×1
network-programming ×1