Equivalent of obsolete function

  • Thread starter Thread starter John
  • Start date Start date
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
 
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
 
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
 
Back
Top