public static IPHostEntry GetHostEntry( string hostNameOrAddress )或者public static IPAddress[] GetHostAddresses( string hostNameOrAddress )或者[ObsoleteAttribute("Resolve is obsoleted for this type, please use GetHostEntry instead. http://go.microsoft.com/fwlink/?linkid=14202")] public static IPHostEntry Resolve( string hostName )
string hostNameOrAddress
)或者public static IPAddress[] GetHostAddresses(
string hostNameOrAddress
)或者[ObsoleteAttribute("Resolve is obsoleted for this type, please use GetHostEntry instead. http://go.microsoft.com/fwlink/?linkid=14202")]
public static IPHostEntry Resolve(
string hostName
)
能够自己把答案写出来,在csdn上已经很不错了。