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.
 
Back
Top