Click or drag to resize

MailBox Class

Represents mailbox that consists of email address and display name.
Inheritance Hierarchy

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

The MailBox type exposes the following members.

Constructors
  NameDescription
Public methodMailBox(String)
Creates new MailBox object using specified email address.
Public methodMailBox(String, String)
Creates new MailBox object using specified email address and display name.
Top
Properties
  NameDescription
Public propertyAddress
Gets email address e.g. "john.smith@example.com".
Public propertyDomainPart
Gets the domain part of the Address e.g. "example.com".
Public propertyLocalPart
Gets the local part of the Address e.g. "john.smith".
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.
(Inherited from MailAddress.)
Public propertyNameOrAddress
Gets Name or Address if name is empty.
Top
Methods
  NameDescription
Public methodStatic memberCreateWithoutValidation(String)
Creates new MailBox object using specified email address and no display name. This method in contrast to MailBox(String) constructor doesn't perform any kind of address validation.
Public methodStatic memberCreateWithoutValidation(String, String)
Creates new MailBox object using specified email address and display name. This method in contrast to MailBox(String, String) constructor doesn't perform any kind of address validation.
Public methodStatic memberEqualAddresses(MailBox, MailBox)
Checks if addresses of two MailBox instances are equal. LocalParts are compared using case sensitive comparison and DomainParts are compared using case insensitive comparison.
Public methodStatic memberEqualAddresses(MailBox, MailBox, AddressComparisionMode)
Checks if addresses of two MailBox instances are equal.
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 mail address.
(Overrides MailAddressGetMailboxes.)
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 mailbox as a string.
(Overrides MailAddressRender.)
Public methodRender(HeaderRenderMode)
Encodes and escapes all necessary data and renders this email as a string.
(Overrides MailAddressRender(HeaderRenderMode).)
Public methodToString
Returns string containing the Name and the Address.
(Overrides ObjectToString.)
Top
See Also