Protection Level

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I had gotten this code from another source and copied it straight into .Net. I have looked over the code a lot of times and it looks like it should work since the class SMTPClient inherits from TcpClient

public class SMTPClient : System.Net.Sockets.TcpClien

public bool isConnected(

return Active


It keeps giving me this error message on build

System.Net.Sockets.TcpClient.Active is inaccessible due to it's protection level.

Can anyone tell me why it's giving me this error

Thanks in advance for any help
Rober
 
Sounds like Active is not public in the base class.

-Chris

Robert said:
I had gotten this code from another source and copied it straight into
..Net. I have looked over the code a lot of times and it looks like it
should work since the class SMTPClient inherits from TcpClient.
 

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