Equivalent of obsolete function

J

John

Hi

I am getting a 'function is obsolete' warning on the following two
statements;

ConfigurationSettings.AppSettings.Get(Key)

and

Dns.GetHostByName(strServer)

What are the translations of these two statements in the current version of
the language?

Thanks

Regards
 
K

kimiraikkonen

Hi

I am getting a 'function is obsolete' warning on the following two
statements;

ConfigurationSettings.AppSettings.Get(Key)

and

Dns.GetHostByName(strServer)

What are the translations of these two statements in the current version of
the language?

Thanks

Regards

Just my guess is that these warnings indicate that these methods have
successors which are newer. For example GetHostEntry is recommended
for GetHostByName but still obsolete ones can be used fine
alternatively.

Thanks,

Onur Güzel
 
A

Armin Zingler

John said:
Hi

I am getting a 'function is obsolete' warning on the following two
statements;

ConfigurationSettings.AppSettings.Get(Key)

and

Dns.GetHostByName(strServer)

What are the translations of these two statements in the current
version of the language?


My full message says:

"'GetHostByName is obsoleted for this type, please use GetHostEntry
instead."

and

"'Public Shared ReadOnly Property AppSettings() As
System.Collections.Specialized.NameValueCollection' is obsolete: 'This
method is obsolete, it has been replaced by System.Configuration!"



Armin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top