?? System.Net.Dns.GetHostName() ??

  • Thread starter Thread starter awd
  • Start date Start date
A

awd

I am having a problem with posts that refer to
System.Net.Dns.GetHostName(). If I have the following in my vb.net
code:

Imports System.Net.Dns

I do not see "GetHostName()".

What could I be missing?
I am using VS.NET 2003

Thank you
 
1. In the code file put at the top
Imports System.Net

2. In the method type
Dns.GetHostName()

It should compile fine...

Note that even your attempt to import the class (not just the namespace)
should have worked in VB but is not clean.

Cheers
Daniel
 
Back
Top