Contact class

Represents contact information.

public class Contact : IPreferredTextEncodingProvider


Name Description
Contact() The default constructor.


Name Description
Account { get; set; } Contains the alias of an Address Book object, which is an alternative name by which the object can be identified.
AssociatedPersons { get; } Gets list of associated persons
Attachments { get; } Gets attachments collection
CompanyName { get; set; } Gets or sets a company name.
ComputerNetworkName { get; set; } Gets or sets a name of the mail user’s computer network.
CustomerId { get; set; } Gets or sets a customer id
DepartmentName { get; set; } Gets or sets a department name.
DisplayName { get; set; } Gets or sets a display name
EmailAddresses { get; } Gets list of email addresses
Events { get; } Gets list of events
FileAs { get; set; } Gets or sets a name used for sorting.
FileAsMapping { get; set; } Gets or sets a value which specifies how to generate and recompute the value of the FileAs property when other contact name properties change.
FreeBusyLocation { get; set; } Gets or sets URL path from which a client can retrieve free/busy information for the contact as an iCal file
Gender { get; set; } Gets or sets gender of a person.
GivenName { get; set; } Gets or sets a given name that is a part of a person’s full name. A given name is also known as a personal name, first name, forename, or Christian name.
GovernmentIdNumber { get; set; } Gets or sets a government id number
Hobbies { get; set; } Gets or sets a hobbies
Id { get; } Gets object identification information
Initials { get; set; } Gets or sets an initials
InstantMessengers { get; } Gets list of instant messenger addresses
JobTitle { get; set; } Gets or sets a job title.
Language { get; set; } Gets or sets a language
Location { get; set; } Gets or sets location
MiddleName { get; set; } Gets or sets a middle name that is a part of a person’s full name. In some countries people have an additional (middle) name.
Nickname { get; set; } Gets or sets a nickname of a person.
Notes { get; set; } Gets or sets a notes
NotesFormat { get; set; } Gets or sets a format of a notes field.
OfficeLocation { get; set; } Gets or sets office location
OrganizationalIdNumber { get; set; } Contains an identifier for the mail user used within the mail user’s organization.
PhoneNumbers { get; } Gets list of phone numbers
Photo { get; set; } Gets or sets an image of contact
PhysicalAddresses { get; } Gets list of postal addresses
PreferredTextEncoding { get; set; } Gets or sets preferred encoding for all text properties
Prefix { get; set; } Gets or sets a prefix of a full name such like Mr.(mister), Dr.(doctor) and so on.
Profession { get; set; } Gets or sets a job position of a person in a company.
Suffix { get; set; } Gets or sets a suffix of a full name such like Jr.(junior), Sr.(senior) and so on.
Surname { get; set; } Gets or sets a surname that is a part of a person’s full name. Surname is also known as family name or last name.
Urls { get; } Gets list of urls


Name Description
static Load(Stream) Loads contact data
static Load(string) Loads contact data
static Load(Stream, ContactLoadFormat) Loads contact data
static Load(string, ContactLoadFormat) Loads contact data
Save(Stream) Saves this MapiContact into the given stream with vCard format. The supported vCard version is 2.1
Save(string) Saves this MapiContact to the vCard file with a default options. The supported vCard version is 2.1
Save(Stream, ContactSaveFormat) Saves this Contact to the given stream with a format using the default options.
Save(Stream, ContactSaveOptions) Saves this Contact to the given stream using specified save options.
Save(string, ContactSaveFormat) Saves this MapiContact to the specified file with a format using the default options. The supported save format is vCard.
Save(string, ContactSaveOptions) Saves this MapiContact into file using specified save options. The supported save options is VCardSaveOptions
override ToString() Returns a string that represents the current object.
implicit operator Converts Contact to MapiContact object (2 operators)

See Also