IPAddress.Address已过时 [英] IPAddress.Address is obsolete

查看:455
本文介绍了IPAddress.Address已过时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道为什么这个属性已经过时了?另外,还有一个

的替代方案吗?

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

推荐答案



" Michael Riggio" < MI ************ @ unisys.nospam.com>在消息中写道

新闻:eY ************** @ TK2MSFTNGP11.phx.gbl ...

"Michael Riggio" <mi************@unisys.nospam.com> 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.net>在留言中写道

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.net> wrote in message
news:ew**************@TK2MSFTNGP10.phx.gbl...

" ; Michael Riggio < MI ************ @ unisys.nospam.com>在消息中写道
新闻:eY ************** @ TK2MSFTNGP11.phx.gbl ...

"Michael Riggio" <mi************@unisys.nospam.com> 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.com>在消息中写道

新闻:************** @ tk2msftngp13.phx.gbl ...
Ooops

For Each add As IPAddress In Ip_Address.AddressList

Next

"Michael Riggio" <mi************@unisys.nospam.com> wrote in message
news:Of**************@tk2msftngp13.phx.gbl...
感谢您抽出宝贵时间为我进行一两次测试。另外,
关于你的替代方案:
IPHostEntry包含一组IPAddress对象,所以我认为在相同的情况下,我是
soft。我正在处理的应用程序需要显示每个主机名的ipaddresses列表,所以我肯定需要遍历该集合。

威廉Ryan eMVP <做******** @ comcast.nospam.net>在消息中写道
新闻: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.net> wrote in message
news:ew**************@TK2MSFTNGP10.phx.gbl...

Michael Riggio < MI ************ @ unisys.nospam.com>在消息中写道
新闻:eY ************** @ TK2MSFTNGP11.phx.gbl ...

"Michael Riggio" <mi************@unisys.nospam.com> 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已过时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆