# EmailAddress

Represents an email or Outlook address.

Class 

`OfficeIMO.Email`

**Namespace**

`OfficeIMO.Email`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[EmailAddress.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailAddress.cs#L6)

**Modifiers**

sealed

Represents an email or Outlook address.

## Inheritance

- object
- EmailAddress

## Usage

Explore 22 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 14

- Method [OfflineAddressBookEntry.ToEmailAddress](/api/email/officeimo-email-addressbook-offlineaddressbookentry/#method-toemailaddress)
- Method [OfflineAddressBookIdentityCandidate.ToEmailAddress](/api/email/officeimo-email-addressbook-offlineaddressbookidentitycandidate/#method-toemailaddress)
- Property [EmailDocument.From](/api/email/officeimo-email-emaildocument/#property-from)
- Property [EmailDocument.ReceivedBy](/api/email/officeimo-email-emaildocument/#property-receivedby)
- Property [EmailDocument.ReceivedRepresenting](/api/email/officeimo-email-emaildocument/#property-receivedrepresenting)
- Property [EmailDocument.Sender](/api/email/officeimo-email-emaildocument/#property-sender)
- Property [EmailMessage.Bcc](/api/email/officeimo-email-emailmessage/#property-bcc)
- Property [EmailMessage.Cc](/api/email/officeimo-email-emailmessage/#property-cc)
- Property [EmailMessage.From](/api/email/officeimo-email-emailmessage/#property-from)
- Property [EmailMessage.To](/api/email/officeimo-email-emailmessage/#property-to)
- Property [EmailRecipient.Address](/api/email/officeimo-email-emailrecipient/#property-address)
- Property [OutlookDistributionListMember.Address](/api/email/officeimo-email-outlookdistributionlistmember/#property-address)
- Property [EmailStoreItemSummary.From](/api/email/officeimo-email-store-emailstoreitemsummary/#property-from)
- Property [EmailStoreItemSummary.Sender](/api/email/officeimo-email-store-emailstoreitemsummary/#property-sender)

### Accepted by parameters 8

- Method [OfflineAddressBookIdentityIndex.Resolve](/api/email/officeimo-email-addressbook-offlineaddressbookidentityindex/#method-resolve-officeimo-email-emailaddress-officeimo-email-addressbook-offlineaddressbookidentityresolutionoptions) parameter `address`
- Method [EmailComposer.Forward](/api/email/officeimo-email-emailcomposer/#method-forward-officeimo-email-emaildocument-officeimo-email-emailaddress-string-officeimo-email-emailcompositionoptions) parameter `from`
- Method [EmailComposer.Reply](/api/email/officeimo-email-emailcomposer/#method-reply-officeimo-email-emaildocument-officeimo-email-emailaddress-string-officeimo-email-emailcompositionoptions) parameter `from`
- Method [EmailComposer.ReplyAll](/api/email/officeimo-email-emailcomposer/#method-replyall-officeimo-email-emaildocument-officeimo-email-emailaddress-string-officeimo-email-emailcompositionoptions) parameter `from`
- Constructor [EmailRecipient.EmailRecipient](/api/email/officeimo-email-emailrecipient/#constructor-ctor-officeimo-email-emailrecipientkind-officeimo-email-emailaddress) parameter `address`
- Method [OutlookDistributionList.Add](/api/email/officeimo-email-outlookdistributionlist/#method-add-officeimo-email-emailaddress) parameter `address`
- Method [OutlookEntryIdCodec.EncodeOneOff](/api/email/officeimo-email-outlookentryidcodec/#method-encodeoneoff-officeimo-email-emailaddress) parameter `address`
- Method [OutlookEntryIdCodec.TryDecodeOneOff](/api/email/officeimo-email-outlookentryidcodec/#method-trydecodeoneoff-byte-officeimo-email-emailaddress-string-int32) parameter `address`

Filter members 

Show inherited

## Constructors

`public EmailAddress(string? address, string? displayName = null, string? rawValue = null)` [#](#constructor-ctor-string-string-string)

[EmailAddress.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailAddress.cs#L6)

Creates an address.

Parameters

**address string? required**

**displayName string? = null optional**

**rawValue string? = null optional**

## Methods

`public override string ToString()` [#](#method-tostring)

[EmailAddress.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailAddress.cs#L26)

Returns a string that represents the current object.

Returns

`string` A string that represents the current object.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

## Properties

`public string? Address { get; set; }` [#](#property-address)

[EmailAddress.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailAddress.cs#L13)

SMTP or source-specific address value.

`public string? DisplayName { get; set; }` [#](#property-displayname)

[EmailAddress.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailAddress.cs#L16)

Human-readable display name.

`public string? RawValue { get; set; }` [#](#property-rawvalue)

[EmailAddress.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailAddress.cs#L19)

Original source spelling when available.

`public string? AddressType { get; set; }` [#](#property-addresstype)

[EmailAddress.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailAddress.cs#L22)

Source address type such as SMTP, EX, X400, or FAX.

<!-- PowerForge markdown artifact sha256:8245D0B4F5F0C9CF67EC48276903CBCA00A4CF9AACE16BE817A9D1C3E70313C8 -->
