Click or drag to resize
MimeKit

InternetAddress Class

An abstract internet address, as specified by rfc0822.
Inheritance Hierarchy

Namespace:  MimeKit
Assembly:  MimeKit (in MimeKit.dll) Version: 2.10.0
Syntax
C#
public abstract class InternetAddress : IComparable<InternetAddress>, 
	IEquatable<InternetAddress>

The InternetAddress type exposes the following members.

Constructors
  NameDescription
Protected methodInternetAddress
Initialize a new instance of the InternetAddress class.
Top
Properties
  NameDescription
Public propertyEncoding
Get or set the character encoding to use when encoding the name of the address.
Public propertyName
Get or set the display name of the address.
Top
Methods
  NameDescription
Public methodClone
Clone the address.
Public methodCompareTo
Compares two internet addresses.
Public methodEquals(Object)
Determine whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public methodEquals(InternetAddress)
Determines whether the specified InternetAddress is equal to the current InternetAddress.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Return the hash code for this instance.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnChanged
Raise the internal changed event used by MimeMessage to keep headers in sync.
Public methodStatic memberParse(Byte)
Parse the given input buffer into a new InternetAddress instance.
Public methodStatic memberParse(String)
Parse the given text into a new InternetAddress instance.
Public methodStatic memberParse(Byte, Int32)
Parse the given input buffer into a new InternetAddress instance.
Public methodStatic memberParse(ParserOptions, Byte)
Parse the given input buffer into a new InternetAddress instance.
Public methodStatic memberParse(ParserOptions, String)
Parse the given text into a new InternetAddress instance.
Public methodStatic memberParse(Byte, Int32, Int32)
Parse the given input buffer into a new InternetAddress instance.
Public methodStatic memberParse(ParserOptions, Byte, Int32)
Parse the given input buffer into a new InternetAddress instance.
Public methodStatic memberParse(ParserOptions, Byte, Int32, Int32)
Parse the given input buffer into a new InternetAddress instance.
Public methodToString
Serialize an InternetAddress to a string suitable for display.
(Overrides ObjectToString.)
Public methodToString(Boolean)
Serialize an InternetAddress to a string, optionally encoding it for transport.
Public methodToString(FormatOptions, Boolean)
Serialize an InternetAddress to a string, optionally encoding it for transport.
Public methodStatic memberTryParse(Byte, InternetAddress)
Try to parse the given input buffer into a new InternetAddress instance.
Public methodStatic memberTryParse(String, InternetAddress)
Try to parse the given text into a new InternetAddress instance.
Public methodStatic memberTryParse(Byte, Int32, InternetAddress)
Try to parse the given input buffer into a new InternetAddress instance.
Public methodStatic memberTryParse(ParserOptions, Byte, InternetAddress)
Try to parse the given input buffer into a new InternetAddress instance.
Public methodStatic memberTryParse(ParserOptions, String, InternetAddress)
Try to parse the given text into a new InternetAddress instance.
Public methodStatic memberTryParse(Byte, Int32, Int32, InternetAddress)
Try to parse the given input buffer into a new InternetAddress instance.
Public methodStatic memberTryParse(ParserOptions, Byte, Int32, InternetAddress)
Try to parse the given input buffer into a new InternetAddress instance.
Public methodStatic memberTryParse(ParserOptions, Byte, Int32, Int32, InternetAddress)
Try to parse the given input buffer into a new InternetAddress instance.
Top
Remarks

A 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.

See Also