|SmtpGetCurrentSmtpServerIndex Method |
collection's index of the server to which
the component is connected or will connect on the next connection attempt.
MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
public int GetCurrentSmtpServerIndex()
Public Function GetCurrentSmtpServerIndex As Integer
If already connected to the SMTP relay server, the return value is the index
of this server in SmtpServers
collection; if not currently connected to
the server, the return value is the index of the server to which the component will
connect on the next connection attempt. The default value is 0.
This property is useful when SmtpServers
more than one SMTP relay server, and the application needs to know which one is used now or
will be used when the time to connect to an SMTP server comes. If SmtpServers
collection contains one or zero elements, this method will return 0.