MailBee.NET Objects 4.0

TopLevelProtocolType Enumeration

Defines types of MailBee main protocols.

public enum TopLevelProtocolType

Remarks

This enumeration is mainly used as the type of Protocol property of many network-specific exceptions and events (such as ConnectedEventArgs.Protocol).

The value of such a property indicates the context in which the corresponding exception or event has occurred. This provides the developer with additional information on the exception or event.

For instance, the developer implementing sending mail via Smtp component can read this property in the exception handler in order to determine whether the exception was caused by SMTP connection error or by DNS/MX error (or even by POP3 error during POP-before-SMTP authentication).

Members

Member NameDescription
Unknown The current context is unknown.
Dns The current context is DNS.
Smtp The current context is SMTP.
Pop3 The current context is POP3.
Imap The current context is IMAP.

Requirements

Namespace: MailBee

Assembly: MailBee.NET (in MailBee.NET.dll)

See Also

MailBee Namespace