Click or drag to resize
MimeKit

MailboxAddress Class

A mailbox address, as specified by rfc822.
Inheritance Hierarchy

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public class MailboxAddress : InternetAddress

The MailboxAddress type exposes the following members.

Constructors
 NameDescription
Public methodMailboxAddress(String, String) Initialize a new instance of the MailboxAddress class.
Public methodMailboxAddress(Encoding, String, String) Initialize a new instance of the MailboxAddress class.
Public methodMailboxAddress(String, IEnumerableString, String) Initialize a new instance of the MailboxAddress class.
Public methodMailboxAddress(Encoding, String, IEnumerableString, String) Initialize a new instance of the MailboxAddress class.
Top
Properties
 NameDescription
Public propertyAddress Get or set the mailbox address.
Public propertyDomain Get the domain of the email address.
Public propertyEncoding Get or set the character encoding to use when encoding the name of the address.
(Inherited from InternetAddress)
Public propertyStatic memberIdnMapping Get or set the punycode implementation that should be used for encoding and decoding mailbox addresses.
Public propertyIsInternational Get whether or not the address is an international address.
Public propertyLocalPart Get the local-part of the email address.
Public propertyName Get or set the display name of the address.
(Inherited from InternetAddress)
Public propertyRoute Get the mailbox route.
Top
Methods
 NameDescription
Public methodClone Clone the mailbox address.
(Overrides InternetAddressClone)
Public methodCompareTo Compares two internet addresses.
(Inherited from InternetAddress)
Public methodStatic memberDecodeAddrspec Decode an addrspec token according to IDN decoding rules.
Public methodStatic memberEncodeAddrspec Encode an addrspec token according to IDN encoding rules.
Public methodEquals(InternetAddress) Determine whether the specified MailboxAddress is equal to the current MailboxAddress.
(Overrides InternetAddressEquals(InternetAddress))
Public methodEquals(Object) Determine whether the specified object is equal to the current object.
(Inherited from InternetAddress)
Protected methodFinalize
(Inherited from Object)
Public methodGetAddress Get the mailbox address, optionally encoded according to IDN encoding rules.
Public methodGetHashCode Return the hash code for this instance.
(Inherited from InternetAddress)
Public methodGetType
(Inherited from Object)
Protected methodMemberwiseClone
(Inherited from Object)
Protected methodOnChanged Raise the internal changed event used by MimeMessage to keep headers in sync.
(Inherited from InternetAddress)
Public methodStatic memberParse(Byte) Parse the given input buffer into a new MailboxAddress instance.
Public methodStatic memberParse(String) Parse the given text into a new MailboxAddress instance.
Public methodStatic memberParse(Byte, Int32) Parse the given input buffer into a new MailboxAddress instance.
Public methodStatic memberParse(ParserOptions, Byte) Parse the given input buffer into a new MailboxAddress instance.
Public methodStatic memberParse(ParserOptions, String) Parse the given text into a new MailboxAddress instance.
Public methodStatic memberParse(Byte, Int32, Int32) Parse the given input buffer into a new MailboxAddress instance.
Public methodStatic memberParse(ParserOptions, Byte, Int32) Parse the given input buffer into a new MailboxAddress instance.
Public methodStatic memberParse(ParserOptions, Byte, Int32, Int32) Parse the given input buffer into a new MailboxAddress instance.
Public methodToString Serialize an InternetAddress to a string suitable for display.
(Inherited from InternetAddress)
Public methodToString(Boolean) Serialize an InternetAddress to a string, optionally encoding it for transport.
(Inherited from InternetAddress)
Public methodToString(FormatOptions, Boolean) Return a string representation of the MailboxAddress, optionally encoding it for transport.
(Overrides InternetAddressToString(FormatOptions, Boolean))
Public methodStatic memberTryParse(Byte, MailboxAddress) Try to parse the given input buffer into a new MailboxAddress instance.
Public methodStatic memberTryParse(String, MailboxAddress) Try to parse the given text into a new MailboxAddress instance.
Public methodStatic memberTryParse(Byte, Int32, MailboxAddress) Try to parse the given input buffer into a new MailboxAddress instance.
Public methodStatic memberTryParse(ParserOptions, Byte, MailboxAddress) Try to parse the given input buffer into a new MailboxAddress instance.
Public methodStatic memberTryParse(ParserOptions, String, MailboxAddress) Try to parse the given text into a new MailboxAddress instance.
Public methodStatic memberTryParse(Byte, Int32, Int32, MailboxAddress) Try to parse the given input buffer into a new MailboxAddress instance.
Public methodStatic memberTryParse(ParserOptions, Byte, Int32, MailboxAddress) Try to parse the given input buffer into a new MailboxAddress instance.
Public methodStatic memberTryParse(ParserOptions, Byte, Int32, Int32, MailboxAddress) Try to parse the given input buffer into a new MailboxAddress instance.
Top
Operators
 NameDescription
Public operatorStatic member(MailAddress to MailboxAddress) Explicit cast to convert a MailAddress to a MailboxAddress.
Public operatorStatic member(MailboxAddress to MailAddress) Explicit cast to convert a MailboxAddress to a MailAddress.
Top
Remarks
Represents a mailbox address (commonly referred to as an email address) for a single recipient.
See Also