Mail |
The MailBox type exposes the following members.
| Name | Description | |
|---|---|---|
| MailBox(String) | Creates new MailBox object using specified email address. | |
| MailBox(String, String) | Creates new MailBox object using specified email address and display name. |
| Name | Description | |
|---|---|---|
| Address | Gets email address e.g. "john.smith@example.com". | |
| DomainPart | Gets the domain part of the Address e.g. "example.com". | |
| LocalPart | Gets the local part of the Address e.g. "john.smith". | |
| Name |
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) | |
| NameOrAddress | Gets Name or Address if name is empty. |
| Name | Description | |
|---|---|---|
| CreateWithoutValidation(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. | |
| CreateWithoutValidation(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. | |
| EqualAddresses(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. | |
| EqualAddresses(MailBox, MailBox, AddressComparisionMode) | Checks if addresses of two MailBox instances are equal. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetMailboxes |
Gets all mailboxes represented by this mail address.
(Overrides MailAddressGetMailboxes) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| Render |
Encodes and escapes all necessary data and renders this mailbox as a string.
(Overrides MailAddressRender) | |
| Render(HeaderRenderMode) |
Encodes and escapes all necessary data and renders this email as a string.
(Overrides MailAddressRender(HeaderRenderMode)) | |
| ToString |
Returns string containing the Name and the Address.
(Overrides ObjectToString) |