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 value)
Determines whether the specified
System.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.
|
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.
|
static MailAddress |
to_MailAddress(MailAddressCollection addresses)
Performs an implicit conversion from
Aspose.Email.Mail.MailAddressCollection to Aspose.Email.Mail.MailAddress . |
static MailAddress |
to_MailAddress(String address)
Performs an implicit conversion from
System.String to Aspose.Email.Mail.MailAddress . |
String |
toString()
Returns a
System.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 String getDisplayName()
Gets or sets a display name.
Value: A String that contains the display name.getDisplayName
in interface IMailAddress
String
object.public void setDisplayName(String value)
Gets or sets a display name.
Value: A String that contains the display name.setDisplayName
in interface IMailAddress
value
- a String
object.public String getUser()
Gets the username.
Value: A String that contains the user name.String
object.public String getHost()
Gets the host portion of the address.
Value: A String that contains the name of the host.String
object.public String getAddress()
Gets or sets the e-mail address.
Value: A String that contains the e-mail address.getAddress
in interface IMailAddress
String
object.public void setAddress(String value)
Gets or sets the e-mail address.
Value: A String that contains the e-mail address.setAddress
in interface IMailAddress
value
- a String
object.public String getOriginalAddressString()
Gets or sets the original e-mail address string.
Value: A String that contains the original e-mail address.String
object.public int getCount()
Contains count of mail addresses.
public 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 ObjectIdentifier getId()
Gets object identification information
ObjectIdentifier
object.public static MailAddress to_MailAddress(String address)
Performs an implicit conversion from System.String
to Aspose.Email.Mail.MailAddress
.
address
- The address.public static MailAddress to_MailAddress(MailAddressCollection addresses)
Performs an implicit conversion from Aspose.Email.Mail.MailAddressCollection
to Aspose.Email.Mail.MailAddress
.
addresses
- The address collection.public String toString()
Returns a System.String
that represents this instance.
public boolean equals(Object value)
Determines whether the specified System.Object
is equal to this instance.
Copyright (c) 2008-2016 Aspose Pty Ltd. All Rights Reserved.