public class MailAddress extends Object implements IMailAddress
Represents the address of a message.
Constructor and Description |
---|
MailAddress(String address)
Initializes a new instance of the
MailAddress class. |
MailAddress(String address,
boolean ignoreSmtpCheck)
Initializes a new instance of the
MailAddress class. |
MailAddress(String address,
String displayName)
Initializes a new instance of the
MailAddress class. |
MailAddress(String address,
String displayName,
boolean ignoreSmtpCheck)
Initializes a new instance of the
MailAddress class. |
MailAddress(String address,
String displayName,
Charset displayNameEncoding)
Initializes a new instance of the
MailAddress class. |
MailAddress(String address,
String displayName,
Charset displayNameEncoding,
boolean ignoreSmtpCheck)
Initializes a new instance of the
MailAddress class. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determines whether the specified
Object is equal to this instance. |
MailAddress |
get_Item(int i)
Gets the element at the specified index.
|
String |
getAddress()
Gets or sets the e-mail address.
|
int |
getCount()
Contains count of mail addresses.
|
String |
getDisplayName()
Gets or sets a display name.
|
String |
getHost()
Gets the host portion of the address.
|
ObjectIdentifier |
getId()
Gets object identification information
|
String |
getOriginalAddressString()
Gets or sets the original e-mail address string.
|
int |
getParticipationStatus()
Gets or sets the participation status for the calendar user.
|
String |
getUser()
Gets the username.
|
int |
hashCode()
Returns a hash code for this instance.
|
void |
setAddress(String value)
Gets or sets the e-mail address.
|
void |
setDisplayName(String value)
Gets or sets a display name.
|
void |
setParticipationStatus(int value)
Gets or sets the participation status for the calendar user.
|
static MailAddress |
to_MailAddress(MailAddressCollection addresses)
Performs an implicit conversion from
MailAddressCollection to MailAddress . |
static MailAddress |
to_MailAddress(String address)
Performs an implicit conversion from
String to MailAddress . |
String |
toString()
Returns a
String that represents this instance. |
public MailAddress(String address, boolean ignoreSmtpCheck)
Initializes a new instance of the MailAddress
class.
address
- The mail address.ignoreSmtpCheck
- if set to true
then SMTP check will be omitted.public MailAddress(String address, String displayName, boolean ignoreSmtpCheck)
Initializes a new instance of the MailAddress
class.
address
- The mail address.displayName
- The display name.ignoreSmtpCheck
- if set to true
then SMTP check will be omitted.public MailAddress(String address, String displayName, Charset displayNameEncoding)
Initializes a new instance of the MailAddress
class.
address
- The mail address.displayName
- The display name.displayNameEncoding
- The display name encoding.public MailAddress(String address, String displayName, Charset displayNameEncoding, boolean ignoreSmtpCheck)
Initializes a new instance of the MailAddress
class.
address
- The mail address.displayName
- The display name.displayNameEncoding
- The display name encoding.ignoreSmtpCheck
- if set to true
then SMTP check will be omitted.public MailAddress(String address)
Initializes a new instance of the MailAddress
class.
address
- The mail address.public MailAddress(String address, String displayName)
Initializes a new instance of the MailAddress
class.
address
- The mail address.displayName
- The display name.public final String getDisplayName()
Gets or sets a display name.
Value: A String that contains the display name.getDisplayName
in interface IMailAddress
public final void setDisplayName(String value)
Gets or sets a display name.
Value: A String that contains the display name.setDisplayName
in interface IMailAddress
public final String getUser()
Gets the username.
Value: A String that contains the user name.public final String getHost()
Gets the host portion of the address.
Value: A String that contains the name of the host.public final String getAddress()
Gets or sets the e-mail address.
Value: A String that contains the e-mail address.getAddress
in interface IMailAddress
public final void setAddress(String value)
Gets or sets the e-mail address.
Value: A String that contains the e-mail address.setAddress
in interface IMailAddress
public final String getOriginalAddressString()
Gets or sets the original e-mail address string.
Value: A String that contains the original e-mail address.public final int getCount()
Contains count of mail addresses.
public final MailAddress get_Item(int i)
Gets the element at the specified index.
i
- The zero-based index of the element to get or set.public final int getParticipationStatus()
Gets or sets the participation status for the calendar user.
public final void setParticipationStatus(int value)
Gets or sets the participation status for the calendar user.
public final ObjectIdentifier getId()
Gets object identification information
public static MailAddress to_MailAddress(String address)
Performs an implicit conversion from String
to MailAddress
.
address
- The address.public static MailAddress to_MailAddress(MailAddressCollection addresses)
Performs an implicit conversion from MailAddressCollection
to MailAddress
.
addresses
- The address collection.public boolean equals(Object obj)
Determines whether the specified Object
is equal to this instance.