MapiContactBuilder Class

A contact (IPM.Contact) to add to a folder of a PstWriter.

public sealed class MapiContactBuilder : MapiMessageBuilder
Inheritance
MapiMessageBuilder MapiContactBuilder

Constructors

NameDescription
MapiContactBuilder()Initializes a new instance of the MapiContactBuilder class.

MapiContactBuilder()

MapiContactBuilder.cs

Initializes a new instance of the MapiContactBuilder class.

public MapiContactBuilder()

Properties

NameDescription
BirthdayGets or sets the birthday.
BusinessHomePageGets or sets the address of the business web page.
BusinessTelephoneNumberGets or sets the business telephone number.
CompanyNameGets or sets the name of the company.
DepartmentNameGets or sets the department.
DisplayNameGets or sets the display name. The writer composes it from the given name and the surname when it is not set.
Email1AddressGets or sets the first email address (SMTP).
Email2AddressGets or sets the second email address (SMTP).
Email3AddressGets or sets the third email address (SMTP).
FileAsGets or sets the name the contact is filed under.
GivenNameGets or sets the given (first) name.
HomeTelephoneNumberGets or sets the home telephone number.
JobTitleGets or sets the job title.
MiddleNameGets or sets the middle name.
MobileTelephoneNumberGets or sets the mobile telephone number.
NicknameGets or sets the nickname.
SurnameGets or sets the surname (last name).

Gets or sets the birthday.

public DateTime? Birthday { get; set; }

Property value

DateTime?

BusinessHomePage

MapiContactBuilder.cs

Gets or sets the address of the business web page.

public string? BusinessHomePage { get; set; }

Property value

string?

BusinessTelephoneNumber

MapiContactBuilder.cs

Gets or sets the business telephone number.

public string? BusinessTelephoneNumber { get; set; }

Property value

string?

Gets or sets the name of the company.

public string? CompanyName { get; set; }

Property value

string?

DepartmentName

MapiContactBuilder.cs

Gets or sets the department.

public string? DepartmentName { get; set; }

Property value

string?

Gets or sets the display name. The writer composes it from the given name and the surname when it is not set.

public string? DisplayName { get; set; }

Property value

string?

Gets or sets the first email address (SMTP).

public string? Email1Address { get; set; }

Property value

string?

Gets or sets the second email address (SMTP).

public string? Email2Address { get; set; }

Property value

string?

Gets or sets the third email address (SMTP).

public string? Email3Address { get; set; }

Property value

string?

Gets or sets the name the contact is filed under.

public string? FileAs { get; set; }

Property value

string?

Gets or sets the given (first) name.

public string? GivenName { get; set; }

Property value

string?

HomeTelephoneNumber

MapiContactBuilder.cs

Gets or sets the home telephone number.

public string? HomeTelephoneNumber { get; set; }

Property value

string?

Gets or sets the job title.

public string? JobTitle { get; set; }

Property value

string?

Gets or sets the middle name.

public string? MiddleName { get; set; }

Property value

string?

MobileTelephoneNumber

MapiContactBuilder.cs

Gets or sets the mobile telephone number.

public string? MobileTelephoneNumber { get; set; }

Property value

string?

Gets or sets the nickname.

public string? Nickname { get; set; }

Property value

string?

Gets or sets the surname (last name).

public string? Surname { get; set; }

Property value

string?

Methods

NameDescription
SetBusinessAddress(MapiPostalAddress?)Sets the business address.
SetHomeAddress(MapiPostalAddress?)Sets the home address.

SetBusinessAddress(MapiPostalAddress?)

MapiContactBuilder.cs

Sets the business address.

public void SetBusinessAddress(MapiPostalAddress? address)

Parameters

address MapiPostalAddress?
The address, or null to remove it.

SetHomeAddress(MapiPostalAddress?)

MapiContactBuilder.cs

Sets the home address.

public void SetHomeAddress(MapiPostalAddress? address)

Parameters

address MapiPostalAddress?
The address, or null to remove it.