Click or drag to resize

MailAddress Class

Represents base class for email addresses. You can use MailBox to represent single mailbox, or MailGroup to represent a group of email addresses. Consider using GetMailboxes method to extract MailBox(es) represented by this email address. You can use MailAddressParser class to parse raw string into its object representation.
Inheritance Hierarchy

Namespace:  Limilabs.Mail.Headers
Assembly:  Mail (in Mail.dll) Version: 3.0.23341.1754
Syntax
[SerializableAttribute]
public abstract class MailAddress

The MailAddress type exposes the following members.

Properties
  NameDescription
Public propertyName
Gets display name of this emmail address e.g. "John Smith". Can be null. Please note that two classes inherit from this class - you can use Address or Addresses properties to get email address(es). Consider using GetMailboxes method to extract MailBox(es) represented by this email address.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetMailboxes
Gets all mailboxes represented by this email address.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRender
Encodes and escapes all necessary data and renders this email address as a string.
Public methodRender(HeaderRenderMode)
Encodes and escapes all necessary data and renders this email group as a string.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also