Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

MailAddress Class

Namespace: Rebex.Mime.Headers
Assembly: Rebex.Mail.dll (version 7.0.9147)

Represents a mailbox that consists of address and a display name.

Syntax
public class MailAddress : IHeader
Inheritance
Object
MailAddress
Implements
IHeader
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)

Remarks

Represents the mailbox structured header defined by RFC 2822.

Constructors

Name Description
MailAddress(String)

Initializes a new instance of MailAddress header value with the specified mail address.

MailAddress(String, Boolean)

Initializes a new instance of MailAddress header value with the specified mail address.

MailAddress(String, String)

Initializes a new instance of MailAddress header value with the specified mail address and display name.

Properties

Name Description
Address

Gets the mail address of this mailbox.

DisplayName

Gets the display name of this mailbox.

Host

Gets the domain of this mailbox.

User

Gets the local part of this mailbox.

Methods

Name Description
Clone()

Creates a copy of the header.

Encode(TextWriter)

Writes an encoded header value into a TextWriter.

ToString()

Converts the value of this header to its String representation.

Operators

Name Description
Implicit(String to MailAddress)

Converts a String to a MailAddress.

In This Article
  • Remarks
  • Constructors
  • Properties
  • Methods
  • Operators
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies