MailAddress Class
Represents MIME mail (mailbox) address.
- Inheritance:
- MailAddress
Constructors
MailAddress(String)
Initializes a new instance of the MailAddress class with specified address.
Parameters
address
- String
The address.
MailAddress(String, String)
Initializes a new instance of the MailAddress class with specified address and display name.
public MailAddress(string address, string displayName)
Public Sub New(address As String, displayName As String)
Parameters
address
- String
The address.
displayName
- String
The display name.
Properties
Address
Gets or sets the address.
Property Value
The address.
Exceptions
Address is null or empty.
DisplayName
Gets or sets the display name.
Property Value
The display name.
Host
Gets the host part of address.
Property Value
The host part of address.
User
Gets the user part of address.
Property Value
The user part of address.
Methods
Equals(Object)
Determines whether the specified Object, is equal to this instance.
public override bool Equals(object obj)
Public Overrides Function Equals(obj As Object) As Boolean
Parameters
Returns
Overrides
GetHashCode()
Returns a hash code for this instance.
Returns
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
Overrides
ToString()
Returns a String that represents this instance.