Class EmailAddress

EmailAddress class

Represents an email address

public class EmailAddress : MailAddress, IComparable<EmailAddress>, IEquatable<EmailAddress>

Constructors

NameDescription
EmailAddress()Initializes a new instance of the EmailAddress class.
EmailAddress(string)Initializes a new instance of the EmailAddress class.
EmailAddress(string, string)Initializes a new instance of the EmailAddress class.

Properties

NameDescription
Address { get; set; }Gets or sets the e-mail address.
Category { get; set; }Gets or sets an object category
Count { get; }Contains count of mail addresses.
DisplayName { get; set; }Gets or sets a display name.
Host { get; }Gets the host portion of the address.
Id { get; }Gets object identification information
Item { get; }Gets the element at the specified index.
OriginalAddressString { get; }Gets or sets the original e-mail address string.
ParticipationStatus { get; set; }Gets or sets the participation status for the calendar user.
Prefered { get; set; }Gets or sets a value which defines whether email address is preferred.
RoutingType { get; set; }Gets or sets a routing type for an email
User { get; }Gets the username.

Methods

NameDescription
virtual CompareTo(EmailAddress)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Equals(EmailAddress)Determines whether the specified Object is equal to the current Object.
override Equals(object)Determines whether the specified Object is equal to the current Object.
Equals(EmailAddress, EmailAddress)Determines whether the specified object instances are considered equal.
override GetHashCode()GetHashCode returns a hash function for this object.
GetHashCode(EmailAddress)GetHashCode returns a hash function for specified object.
override ToString()Returns a string that represents the current object.
operator ==Determines whether the specified objects are equal.
operator !=Determines whether the specified objects are not equal.

See Also