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
SystemObject
  Limilabs.Mail.HeadersMailAddress
    Limilabs.Mail.HeadersMailBox
    Limilabs.Mail.HeadersMailGroup

Namespace: Limilabs.Mail.Headers
Assembly: Mail (in Mail.dll) Version: 3.0.26106.1555
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 methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetMailboxes Gets all mailboxes represented by this email address.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates 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 methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also