?? 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
 

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

Back
Top