Class MapiContactElectronicAddress

MapiContactElectronicAddress class

An e-mail address or fax number of a contact.

public sealed class MapiContactElectronicAddress : MapiContactAddress

Constructors

NameDescription
MapiContactElectronicAddress()Initializes a new instance of the MapiContactElectronicAddress class.
MapiContactElectronicAddress(string)Initializes a new instance of the MapiContactElectronicAddress class with an e-mail address.
MapiContactElectronicAddress(string, string)Initializes a new instance of the MapiContactElectronicAddress class with a fax number and an e-mail address.
MapiContactElectronicAddress(string, string, string)Initializes a new instance of the MapiContactElectronicAddress class.

Properties

NameDescription
AddressType { get; set; }Gets or sets the type of the address, such as SMTP or EX (Exchange).
DisplayName { get; set; }Gets or sets the name shown for the address.
EmailAddress { get; set; }Gets or sets the e-mail address.
FaxNumber { get; set; }Gets or sets the fax number.
IsEmpty { get; }Gets a value indicating whether no field of the address is set.
OriginalDisplayName { get; set; }Gets or sets the SMTP form of the address, used when the address itself is of another type.

Methods

NameDescription
override Equals(object)Determines whether the specified object is equal to the current object.
override GetHashCode()Returns the hash code of the address.
override ToString()Returns a string that represents the current object.
implicit operatorPerforms an implicit conversion from String to MapiContactElectronicAddress.

Remarks

A string converts implicitly to this class, so an e-mail address can be assigned directly: contact.ElectronicAddresses.Email1 = "alice@example.com";.

See Also