Internet Address Class
An abstract internet address, as specified by rfc0822.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
[TypeConverterAttribute(typeof(InternetAddressConverter))]
public abstract class InternetAddress : IComparable<InternetAddress>,
IEquatable<InternetAddress>- Inheritance
- Object InternetAddress
- Derived
- Implements
- IComparableInternetAddress, IEquatableInternetAddress
Remarks
An InternetAddress can be any type of address defined by the original Internet Message specification.
There are effectively two (2) types of addresses: mailboxes and groups.
Mailbox addresses are what are most commonly known as email addresses and are represented by the MailboxAddress class.
Group addresses are themselves lists of addresses and are represented by the GroupAddress class. While rare, it is still important to handle these types of addresses. They typically only contain mailbox addresses, but may also contain other group addresses.
Constructors
| InternetAddress | Initialize a new instance of the InternetAddress class. |
Properties
| Encoding | Get or set the character encoding to use when encoding the name of the address. |
| Name | Get or set the display name of the address. |
Methods
| Clone | Clone the address. |
| CompareTo | Compares two internet addresses. |
| Equals(InternetAddress) | Determine whether the specified InternetAddress is equal to the current InternetAddress. |
| Equals(Object) |
Determine whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object)) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetHashCode |
Return the hash code for this instance.
(Overrides ObjectGetHashCode) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| OnChanged | Raise the internal changed event used by MimeMessage to keep headers in sync. |
| Parse(Byte) | Parse the given input buffer into a new InternetAddress instance. |
| Parse(String) | Parse the given text into a new InternetAddress instance. |
| Parse(Byte, Int32) | Parse the given input buffer into a new InternetAddress instance. |
| Parse(ParserOptions, Byte) | Parse the given input buffer into a new InternetAddress instance. |
| Parse(ParserOptions, String) | Parse the given text into a new InternetAddress instance. |
| Parse(Byte, Int32, Int32) | Parse the given input buffer into a new InternetAddress instance. |
| Parse(ParserOptions, Byte, Int32) | Parse the given input buffer into a new InternetAddress instance. |
| Parse(ParserOptions, Byte, Int32, Int32) | Parse the given input buffer into a new InternetAddress instance. |
| ToString |
Serialize an InternetAddress to a string suitable for display.
(Overrides ObjectToString) |
| ToString(Boolean) | Serialize an InternetAddress to a string, optionally encoding it for transport. |
| ToString(FormatOptions, Boolean) | Serialize an InternetAddress to a string, optionally encoding it for transport. |
| TryParse(Byte, InternetAddress) | Try to parse the given input buffer into a new InternetAddress instance. |
| TryParse(String, InternetAddress) | Try to parse the given text into a new InternetAddress instance. |
| TryParse(Byte, Int32, InternetAddress) | Try to parse the given input buffer into a new InternetAddress instance. |
| TryParse(ParserOptions, Byte, InternetAddress) | Try to parse the given input buffer into a new InternetAddress instance. |
| TryParse(ParserOptions, String, InternetAddress) | Try to parse the given text into a new InternetAddress instance. |
| TryParse(Byte, Int32, Int32, InternetAddress) | Try to parse the given input buffer into a new InternetAddress instance. |
| TryParse(ParserOptions, Byte, Int32, InternetAddress) | Try to parse the given input buffer into a new InternetAddress instance. |
| TryParse(ParserOptions, Byte, Int32, Int32, InternetAddress) | Try to parse the given input buffer into a new InternetAddress instance. |