IPAddress.Address已过时

编程入门 行业动态 更新时间:2024-10-22 20:31:49
本文介绍了IPAddress.Address已过时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

有谁知道为什么这个属性已经过时了?另外,还有一个 的替代方案吗?

Does anyone know why this property is obsolete? Also, is there an alternative available?

推荐答案

" Michael Riggio" < MI ************ @ unisys.nospam>在消息中写道 新闻:eY ************** @ TK2MSFTNGP11.phx.gbl ... "Michael Riggio" <mi************@unisys.nospam> wrote in message news:eY**************@TK2MSFTNGP11.phx.gbl... 有谁知道为什么会这样财产已经过时了? 不是特别的,但通常它们是b / c它们构建了新的功能和 过时的东西由于依赖性的变化而不再有效或 不适合模特。我会看看能不能给你一个真正的答案 一个b / c这只是我的一个猜测 此外,还有替代方案吗? ? 这样的事情: Dim Ip_Address As IPHostEntry = Dns.Resolve(" 205.128.215.120") MessageBox .Show(Ip_Address.HostName) Does anyone know why this property is obsolete? Not specifically, but usually it''s b/c they build in new funcionality and the obsolete stuff no longer works due to a change in a dependency or doesn''t fit in the model. I''ll see if I can get you a real answer to this one b/c this is just a guess on my part Also, is there an alternative available? Something like this: Dim Ip_Address As IPHostEntry = Dns.Resolve("205.128.215.120") MessageBox.Show(Ip_Address.HostName)

感谢您花时间为我进行一两次测试。另外, 关于你的选择: IPHostEntry包含一组IPAddress对象,所以我觉得我很软 同样情况。我正在处理的应用程序需要显示每个主机名的ipaddresses列表,所以我肯定需要 遍历该集合.. " William Ryan eMVP" <做******** @ comcast.nospam>在留言中写道 news:ew ************** @ TK2MSFTNGP10.phx.gbl ... Thanks for taking the time to perform a test or two for me. Also, concerning your alternative: IPHostEntry contains a collection of IPAddress objects, so I think I''m soft of in the same situation. The application I''m working on needs to display the list of ipaddresses for each hostname, so I would definitely need to iterate through that collection.. "William Ryan eMVP" <do********@comcast.nospam> wrote in message news:ew**************@TK2MSFTNGP10.phx.gbl... " ; Michael Riggio < MI ************ @ unisys.nospam>在消息中写道新闻:eY ************** @ TK2MSFTNGP11.phx.gbl ... "Michael Riggio" <mi************@unisys.nospam> wrote in message news:eY**************@TK2MSFTNGP11.phx.gbl... 有谁知道为什么这个属性已经过时了? Does anyone know why this property is obsolete?

不是特别的,但通常它们是b / c,它们构建了新的功能,而且过时的东西由于依赖性的改变而不再起作用,或者没有。适合模型。我会看看能不能给你一个真正的答案一个b / c这只是我的一个猜测另外,是否有一个

Not specifically, but usually it''s b/c they build in new funcionality and the obsolete stuff no longer works due to a change in a dependency or doesn''t fit in the model. I''ll see if I can get you a real answer to this one b/c this is just a guess on my part Also, is there an

替代品可用?

这样的事情: Dim Ip_Address As IPHostEntry = Dns.Resolve(" 205.128.215.120") MessageBox.Show( Ip_Address.HostName)

Something like this: Dim Ip_Address As IPHostEntry = Dns.Resolve("205.128.215.120") MessageBox.Show(Ip_Address.HostName)

Ooops For Each IPAddress in Ip_Address.AddressList Next " Michael Riggio" < MI ************ @ unisys.nospam>在消息中写道 新闻:************** @ tk2msftngp13.phx.gbl ... Ooops For Each add As IPAddress In Ip_Address.AddressList Next "Michael Riggio" <mi************@unisys.nospam> wrote in message news:Of**************@tk2msftngp13.phx.gbl... 感谢您抽出宝贵时间为我进行一两次测试。另外,关于你的替代方案: IPHostEntry包含一组IPAddress对象,所以我认为在相同的情况下,我是 soft。我正在处理的应用程序需要显示每个主机名的ipaddresses列表,所以我肯定需要遍历该集合。 威廉Ryan eMVP <做******** @ comcast.nospam>在消息中写道新闻:ew ************** @ TK2MSFTNGP10.phx.gbl ... Thanks for taking the time to perform a test or two for me. Also, concerning your alternative: IPHostEntry contains a collection of IPAddress objects, so I think I''m soft of in the same situation. The application I''m working on needs to display the list of ipaddresses for each hostname, so I would definitely need to iterate through that collection.. "William Ryan eMVP" <do********@comcast.nospam> wrote in message news:ew**************@TK2MSFTNGP10.phx.gbl... Michael Riggio < MI ************ @ unisys.nospam>在消息中写道新闻:eY ************** @ TK2MSFTNGP11.phx.gbl ... "Michael Riggio" <mi************@unisys.nospam> wrote in message news:eY**************@TK2MSFTNGP11.phx.gbl... 有谁知道为什么这个属性已经过时了? Does anyone know why this property is obsolete?

不是特别的,但通常是'b / c他们建立新的功能和过时的东西不再有效,因为依赖的变化或不'适合模型。我会看看我是否可以给你一个真实的答案,这个b / c这个只是我的猜测。另外,是否有一个

Not specifically, but usually it''s b/c they build in new funcionality and the obsolete stuff no longer works due to a change in a dependency or doesn''t fit in the model. I''ll see if I can get you a real answer to this one b/c this is just a guess on my part Also, is there an

替代品?

这样的事情: Dim Ip_Address As IPHostEntry = Dns.Resolve(" 205.128.215.120") MessageBox.Show( Ip_Address.HostName)

Something like this: Dim Ip_Address As IPHostEntry = Dns.Resolve("205.128.215.120") MessageBox.Show(Ip_Address.HostName)

更多推荐

IPAddress.Address已过时

本文发布于:2023-11-14 10:11:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1586932.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:IPAddress   Address

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!