Represents a single e-mail address.
Inheritance Hierarchy
NI.Email.Mime.Field.Address Address
NI.Email.Mime.Field.Address Mailbox
NI.Email.Mime.Field.Address NamedMailbox
Namespace: NI.Email.Mime.Field.Address
Assembly: NI.Email.Mime (in NI.Email.Mime.dll) Version: 1.8.5168.22709
Syntax
The Mailbox type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Mailbox(String) | Initializes a new instance of the Mailbox class | |
Mailbox(String, String) |
Creates a mailbox without a route. Routes are obsolete.
| |
Mailbox(DomainList, String, String) |
Creates a mailbox with a route. Routes are obsolete.
|
Methods
Name | Description | |
---|---|---|
AddMailboxesTo |
Adds any mailboxes represented by this address
into the given ArrayList. Note that this method
has default (package) access, so a doAddMailboxesTo
method is needed to allow the behavior to be
overridden by subclasses.
(Inherited from Address.) | |
DoAddMailboxesTo | (Overrides Address DoAddMailboxesTo(ArrayList).) | |
Equals | (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.) | |
GetAddressString | ||
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | (Overrides Object ToString .) |
Properties
Name | Description | |
---|---|---|
AddressString |
Formats the address as a string, not including
the route.
| |
Domain |
Returns the right part of the e-mail address
(after "@").
| |
LocalPart |
Returns the left part of the e-mail address
(before "@").
| |
Route |
Returns the route list.
|
See Also