System.Net.Mail.MailAddress Members

The members of System.Net.Mail.MailAddress are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Net.Mail.MailAddress class using the specified address.

Initializes a new instance of the System.Net.Mail.MailAddress class using the specified address and display name.

Initializes a new instance of the System.Net.Mail.MailAddress class using the specified address, display name, and encoding.

Public Properties

[read-only]
Addressstring.

Gets the e-mail address specified when this instance was created.

[read-only]
DisplayNamestring.

Gets the display name composed from the display name and address information specified when this instance was created.

[read-only]
Hoststring.

Gets the host portion of the address specified when this instance was created.

[read-only]
Userstring.

Gets the user information from the address specified when this instance was created.

Public Methods

override
Equals(object) : bool

Compares two mail addresses.

override
GetHashCode() : int

Returns a hash value for a mail address.

override
ToString() : string

Returns a string representation of this instance.