Click or drag to resize
MimeKit

InternetAddress Class

An internet address, as specified by rfc0822.
Inheritance Hierarchy

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

The InternetAddress type exposes the following members.

Constructors
  NameDescription
Protected methodInternetAddress
Initializes a new instance of the InternetAddress class.
Top
Properties
  NameDescription
Public propertyEncoding
Gets or sets the character encoding to use when encoding the name of the address.
Public propertyName
Gets or sets the display name of the address.
Top
Methods
  NameDescription
Public methodClone
Clone the address.
Public methodCompareTo
Compares two internet addresses.
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Inherited from 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
Serves as the default hash function.
(Inherited from Object.)
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
Raises the internal changed event used by MimeMessage to keep headers in sync.
Public methodStatic memberParse(Byte)
Parses the given input buffer into a new InternetAddress instance.
Public methodStatic memberParse(String)
Parses the given text into a new InternetAddress instance.
Public methodStatic memberParse(Byte, Int32)
Parses the given input buffer into a new InternetAddress instance.
Public methodStatic memberParse(ParserOptions, Byte)
Parses the given input buffer into a new InternetAddress instance.
Public methodStatic memberParse(ParserOptions, String)
Parses the given text into a new InternetAddress instance.
Public methodStatic memberParse(Byte, Int32, Int32)
Parses the given input buffer into a new InternetAddress instance.
Public methodStatic memberParse(ParserOptions, Byte, Int32)
Parses the given input buffer into a new InternetAddress instance.
Public methodStatic memberParse(ParserOptions, Byte, Int32, Int32)
Parses the given input buffer into a new InternetAddress instance.
Public methodToString
Returns a string representation of a InternetAddress suitable for display.
(Overrides ObjectToString.)
Public methodToString(Boolean)
Returns a string representation of the InternetAddress, optionally encoding it for transport.
Public methodToString(FormatOptions, Boolean)
Returns a string representation of the InternetAddress, optionally encoding it for transport.
Public methodStatic memberTryParse(Byte, InternetAddress)
Tries to parse the given input buffer into a new InternetAddress instance.
Public methodStatic memberTryParse(String, InternetAddress)
Tries to parse the given text into a new InternetAddress instance.
Public methodStatic memberTryParse(Byte, Int32, InternetAddress)
Tries to parse the given input buffer into a new InternetAddress instance.
Public methodStatic memberTryParse(ParserOptions, Byte, InternetAddress)
Tries to parse the given input buffer into a new InternetAddress instance.
Public methodStatic memberTryParse(ParserOptions, String, InternetAddress)
Tries to parse the given text into a new InternetAddress instance.
Public methodStatic memberTryParse(Byte, Int32, Int32, InternetAddress)
Tries to parse the given input buffer into a new InternetAddress instance.
Public methodStatic memberTryParse(ParserOptions, Byte, Int32, InternetAddress)
Tries to parse the given input buffer into a new InternetAddress instance.
Public methodStatic memberTryParse(ParserOptions, Byte, Int32, Int32, InternetAddress)
Tries 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