public SmtpClient ( string host, int port ) : System.ComponentModel | ||
host | string | |
port | int | |
return | System.ComponentModel |
public SmtpClient(string host, int port)
{
if (NetEventSource.IsEnabled) NetEventSource.Enter(this, host, port);
try
{
if (port < 0)
{
throw new ArgumentOutOfRangeException(nameof(port));
}
_host = host;
_port = port;
Initialize();
}
finally
{
if (NetEventSource.IsEnabled) NetEventSource.Exit(this);
}
}
SmtpClient::SmtpClient ( ) : System.ComponentModel | |
SmtpClient::SmtpClient ( string host ) : System.ComponentModel |