Show / Hide Table of Contents

Class MailKitEmailAddress

A mail kit email address.

Inheritance
System.Object
MimeKit.InternetAddress
MimeKit.MailboxAddress
MailKitEmailAddress
Implements
System.IComparable<MimeKit.InternetAddress>
System.IEquatable<MimeKit.InternetAddress>
IEmailAddress
IIndexable
Inherited Members
MimeKit.MailboxAddress.Clone()
MimeKit.MailboxAddress.EncodeAddrspec(System.String)
MimeKit.MailboxAddress.DecodeAddrspec(System.String)
MimeKit.MailboxAddress.ToString(MimeKit.FormatOptions, System.Boolean)
MimeKit.MailboxAddress.Equals(MimeKit.InternetAddress)
MimeKit.MailboxAddress.TryParse(MimeKit.ParserOptions, System.Byte[], System.Int32, System.Int32, MimeKit.MailboxAddress)
MimeKit.MailboxAddress.TryParse(System.Byte[], System.Int32, System.Int32, MimeKit.MailboxAddress)
MimeKit.MailboxAddress.TryParse(MimeKit.ParserOptions, System.Byte[], System.Int32, MimeKit.MailboxAddress)
MimeKit.MailboxAddress.TryParse(System.Byte[], System.Int32, MimeKit.MailboxAddress)
MimeKit.MailboxAddress.TryParse(MimeKit.ParserOptions, System.Byte[], MimeKit.MailboxAddress)
MimeKit.MailboxAddress.TryParse(System.Byte[], MimeKit.MailboxAddress)
MimeKit.MailboxAddress.TryParse(MimeKit.ParserOptions, System.String, MimeKit.MailboxAddress)
MimeKit.MailboxAddress.TryParse(System.String, MimeKit.MailboxAddress)
MimeKit.MailboxAddress.Parse(MimeKit.ParserOptions, System.Byte[], System.Int32, System.Int32)
MimeKit.MailboxAddress.Parse(System.Byte[], System.Int32, System.Int32)
MimeKit.MailboxAddress.Parse(MimeKit.ParserOptions, System.Byte[], System.Int32)
MimeKit.MailboxAddress.Parse(System.Byte[], System.Int32)
MimeKit.MailboxAddress.Parse(MimeKit.ParserOptions, System.Byte[])
MimeKit.MailboxAddress.Parse(System.Byte[])
MimeKit.MailboxAddress.Parse(MimeKit.ParserOptions, System.String)
MimeKit.MailboxAddress.Parse(System.String)
MimeKit.MailboxAddress.Route
MimeKit.MailboxAddress.Address
MimeKit.MailboxAddress.IsInternational
MimeKit.InternetAddress.CompareTo(MimeKit.InternetAddress)
MimeKit.InternetAddress.ToString(System.Boolean)
MimeKit.InternetAddress.ToString()
MimeKit.InternetAddress.OnChanged()
MimeKit.InternetAddress.TryParse(MimeKit.ParserOptions, System.Byte[], System.Int32, System.Int32, MimeKit.InternetAddress)
MimeKit.InternetAddress.TryParse(System.Byte[], System.Int32, System.Int32, MimeKit.InternetAddress)
MimeKit.InternetAddress.TryParse(MimeKit.ParserOptions, System.Byte[], System.Int32, MimeKit.InternetAddress)
MimeKit.InternetAddress.TryParse(System.Byte[], System.Int32, MimeKit.InternetAddress)
MimeKit.InternetAddress.TryParse(MimeKit.ParserOptions, System.Byte[], MimeKit.InternetAddress)
MimeKit.InternetAddress.TryParse(System.Byte[], MimeKit.InternetAddress)
MimeKit.InternetAddress.TryParse(MimeKit.ParserOptions, System.String, MimeKit.InternetAddress)
MimeKit.InternetAddress.TryParse(System.String, MimeKit.InternetAddress)
MimeKit.InternetAddress.Encoding
MimeKit.InternetAddress.Name
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Kephas.Mail.Message
Assembly: Kephas.Mail.MailKit.dll
Syntax
public class MailKitEmailAddress : MailboxAddress, IComparable<InternetAddress>, IEquatable<InternetAddress>, IEmailAddress, IIndexable

Constructors

| Improve this Doc View Source

MailKitEmailAddress(IEnumerable<String>, String)

Initializes a new instance of the MailKitEmailAddress class.

Declaration
public MailKitEmailAddress(IEnumerable<string> route, string address)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.String> route

The route of the mailbox.

System.String address

The address of the mailbox.

Remarks

Creates a new MailKitEmailAddress with the specified address and route.

Exceptions
Type Condition
System.ArgumentNullException

route is null.

-or-

address is null.

MimeKit.ParseException

address is malformed.

| Improve this Doc View Source

MailKitEmailAddress(String)

Initializes a new instance of the MailKitEmailAddress class.

Declaration
public MailKitEmailAddress(string address)
Parameters
Type Name Description
System.String address

The address of the mailbox.

Remarks

Creates a new MailKitEmailAddress with the specified address.

note

The address must be in the form user@example.com.

This method cannot be used to parse a free-form email address that includes the name or encloses the address in angle brackets.

To parse a free-form email address, use MimeKit.MailboxAddress.Parse(System.String) instead.

Exceptions
Type Condition
System.ArgumentNullException

address is null.

MimeKit.ParseException

address is malformed.

| Improve this Doc View Source

MailKitEmailAddress(String, IEnumerable<String>, String)

Initializes a new instance of the MailKitEmailAddress class.

Declaration
public MailKitEmailAddress(string name, IEnumerable<string> route, string address)
Parameters
Type Name Description
System.String name

The name of the mailbox.

System.Collections.Generic.IEnumerable<System.String> route

The route of the mailbox.

System.String address

The address of the mailbox.

Remarks

Creates a new MailKitEmailAddress with the specified name, address and route.

Exceptions
Type Condition
System.ArgumentNullException

route is null.

-or-

address is null.

MimeKit.ParseException

address is malformed.

| Improve this Doc View Source

MailKitEmailAddress(String, String)

Initializes a new instance of the MailKitEmailAddress class.

Declaration
public MailKitEmailAddress(string name, string address)
Parameters
Type Name Description
System.String name

The name of the mailbox.

System.String address

The address of the mailbox.

Remarks

Creates a new MailKitEmailAddress with the specified name and address.

Exceptions
Type Condition
System.ArgumentNullException

address is null.

MimeKit.ParseException

address is malformed.

| Improve this Doc View Source

MailKitEmailAddress(Encoding, String, IEnumerable<String>, String)

Initializes a new instance of the MailKitEmailAddress class.

Declaration
public MailKitEmailAddress(Encoding encoding, string name, IEnumerable<string> route, string address)
Parameters
Type Name Description
System.Text.Encoding encoding

The character encoding to be used for encoding the name.

System.String name

The name of the mailbox.

System.Collections.Generic.IEnumerable<System.String> route

The route of the mailbox.

System.String address

The address of the mailbox.

Remarks

Creates a new MailKitEmailAddress with the specified name, address and route. The specified text encoding is used when encoding the name according to the rules of rfc2047.

Exceptions
Type Condition
System.ArgumentNullException

encoding is null.

-or-

route is null.

-or-

address is null.

MimeKit.ParseException

address is malformed.

| Improve this Doc View Source

MailKitEmailAddress(Encoding, String, String)

Initializes a new instance of the MailKitEmailAddress class.

Declaration
public MailKitEmailAddress(Encoding encoding, string name, string address)
Parameters
Type Name Description
System.Text.Encoding encoding

The character encoding to be used for encoding the name.

System.String name

The name of the mailbox.

System.String address

The address of the mailbox.

Remarks

Creates a new MailKitEmailAddress with the specified name and address. The specified text encoding is used when encoding the name according to the rules of rfc2047.

Exceptions
Type Condition
System.ArgumentNullException

encoding is null.

-or-

address is null.

MimeKit.ParseException

address is malformed.

Properties

| Improve this Doc View Source

Item[String]

Convenience method that provides a string Indexer to the Properties collection AND the strongly typed properties of the object by name. // dynamic exp["Address"] = "112 nowhere lane"; // strong var name = exp["StronglyTypedProperty"] as string;.

Declaration
public object this[string key] { get; set; }
Parameters
Type Name Description
System.String key

The key.

Property Value
Type Description
System.Object

The System.Object identified by the key.

Explicit Interface Implementations

| Improve this Doc View Source

IEmailAddress.DisplayName

Gets the display name of the subject associated to the address.

Declaration
string IEmailAddress.DisplayName { get; }
Returns
Type Description
System.String

Implements

System.IComparable<T>
System.IEquatable<T>
IEmailAddress
IIndexable

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX