Represents contact information. More...

Inherits Aspose::Email::IPreferredTextEncodingProvider.

Public Member Functions

System::SharedPtr< ObjectIdentifierget_Id () const
 Gets object identification information More...
 
Aspose::Email::PersonalInfo::Gender get_Gender () const
 Gets gender of a person. More...
 
void set_Gender (Aspose::Email::PersonalInfo::Gender value)
 Sets gender of a person. More...
 
System::String get_Location () const
 Gets location More...
 
void set_Location (System::String value)
 Sets location More...
 
System::String get_OfficeLocation () const
 Gets office location More...
 
void set_OfficeLocation (System::String value)
 Sets office location More...
 
System::String get_FreeBusyLocation () const
 Gets URL path from which a client can retrieve free/busy information for the contact as an iCal file More...
 
void set_FreeBusyLocation (System::String value)
 Sets URL path from which a client can retrieve free/busy information for the contact as an iCal file More...
 
System::String get_ComputerNetworkName () const
 Gets a name of the mail user's computer network. More...
 
void set_ComputerNetworkName (System::String value)
 Sets a name of the mail user's computer network. More...
 
System::SharedPtr< System::Text::Encoding > get_PreferredTextEncoding () override
 Gets preferred encoding for all text properties More...
 
void set_PreferredTextEncoding (System::SharedPtr< System::Text::Encoding > value) override
 Sets preferred encoding for all text properties More...
 
System::String get_Initials () const
 Gets an initials More...
 
void set_Initials (System::String value)
 Sets an initials More...
 
System::String get_DisplayName () const
 Gets a display name More...
 
void set_DisplayName (System::String value)
 Sets a display name More...
 
System::String get_Prefix () const
 Gets a prefix of a full name such like Mr.(mister), Dr.(doctor) and so on. More...
 
void set_Prefix (System::String value)
 Sets a prefix of a full name such like Mr.(mister), Dr.(doctor) and so on. More...
 
System::String get_GivenName () const
 Gets 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. More...
 
void set_GivenName (System::String value)
 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. More...
 
System::String get_MiddleName () const
 Gets a middle name that is a part of a person's full name. In some countries people have an additional (middle) name. More...
 
void set_MiddleName (System::String value)
 Sets a middle name that is a part of a person's full name. In some countries people have an additional (middle) name. More...
 
System::String get_Surname () const
 Gets a surname that is a part of a person's full name. Surname is also known as family name or last name. More...
 
void set_Surname (System::String value)
 Sets a surname that is a part of a person's full name. Surname is also known as family name or last name. More...
 
System::String get_Suffix () const
 Gets a suffix of a full name such like Jr.(junior), Sr.(senior) and so on. More...
 
void set_Suffix (System::String value)
 Sets a suffix of a full name such like Jr.(junior), Sr.(senior) and so on. More...
 
System::String get_Notes () const
 Gets a notes More...
 
void set_Notes (System::String value)
 Sets a notes More...
 
TextFormat get_NotesFormat () const
 Gets a format of a notes field. More...
 
void set_NotesFormat (TextFormat value)
 Sets a format of a notes field. More...
 
System::String get_Nickname () const
 Gets a nickname of a person. More...
 
void set_Nickname (System::String value)
 Sets a nickname of a person. More...
 
System::SharedPtr< ContactPhotoget_Photo () const
 Gets an image of contact More...
 
void set_Photo (System::SharedPtr< ContactPhoto > value)
 Sets an image of contact More...
 
System::String get_CompanyName () const
 Gets a company name. More...
 
void set_CompanyName (System::String value)
 Sets a company name. More...
 
System::String get_Profession () const
 Gets a job position of a person in a company. More...
 
void set_Profession (System::String value)
 Sets a job position of a person in a company. More...
 
System::String get_JobTitle () const
 Gets a job title. More...
 
void set_JobTitle (System::String value)
 Sets a job title. More...
 
System::String get_DepartmentName () const
 Gets a department name. More...
 
void set_DepartmentName (System::String value)
 Sets a department name. More...
 
System::String get_FileAs () const
 Gets a name used for sorting. More...
 
void set_FileAs (System::String value)
 Sets a name used for sorting. More...
 
Aspose::Email::PersonalInfo::FileAsMapping get_FileAsMapping () const
 Gets a value which specifies how to generate and recompute the value of the FileAs property when other contact name properties change. More...
 
void set_FileAsMapping (Aspose::Email::PersonalInfo::FileAsMapping value)
 Sets a value which specifies how to generate and recompute the value of the FileAs property when other contact name properties change. More...
 
System::String get_Account () const
 Contains the alias of an Address Book object, which is an alternative name by which the object can be identified. More...
 
void set_Account (System::String value)
 Contains the alias of an Address Book object, which is an alternative name by which the object can be identified. More...
 
System::String get_OrganizationalIdNumber () const
 Contains an identifier for the mail user used within the mail user's organization. More...
 
void set_OrganizationalIdNumber (System::String value)
 Contains an identifier for the mail user used within the mail user's organization. More...
 
System::String get_CustomerId () const
 Gets a customer id More...
 
void set_CustomerId (System::String value)
 Sets a customer id More...
 
System::String get_GovernmentIdNumber () const
 Gets a government id number More...
 
void set_GovernmentIdNumber (System::String value)
 Sets a government id number More...
 
System::String get_Hobbies () const
 Gets a hobbies More...
 
void set_Hobbies (System::String value)
 Sets a hobbies More...
 
System::String get_Language () const
 Gets a language More...
 
void set_Language (System::String value)
 Sets a language More...
 
System::SharedPtr< EmailAddressListget_EmailAddresses () const
 Gets list of email addresses More...
 
System::SharedPtr< PostalAddressListget_PhysicalAddresses () const
 Gets list of postal addresses More...
 
System::SharedPtr< PhoneNumberListget_PhoneNumbers () const
 Gets list of phone numbers More...
 
System::SharedPtr< UrlListget_Urls () const
 Gets list of urls More...
 
System::SharedPtr< EventListget_Events () const
 Gets list of events More...
 
System::SharedPtr< InstantMessengerListget_InstantMessengers () const
 Gets list of instant messenger addresses More...
 
System::SharedPtr< AssociatedPersonsListget_AssociatedPersons () const
 Gets list of associated persons More...
 
System::SharedPtr< AttachmentCollectionget_Attachments () const
 Gets attachments collection More...
 
System::SharedPtr< System::Collections::Generic::Dictionary< System::SharedPtr< Aspose::Email::Mapi::PropertyDescriptor >, System::SharedPtr< System::Object > > > get_ExtendedProperties () const
 Gets extended properties of contact More...
 
void Save (System::SharedPtr< System::IO::Stream > stream)
 Saves this MapiContact into the given stream with vCard format. The supported vCard version is 2.1 More...
 
void Save (System::String filePath)
 Saves this MapiContact to the vCard file with a default options. The supported vCard version is 2.1 More...
 
void Save (System::String filePath, System::SharedPtr< Aspose::Email::Mapi::ContactSaveOptions > saveOptions)
 Saves this MapiContact into file using specified save options. The supported save options is VCardSaveOptions More...
 
void Save (System::String filePath, Aspose::Email::Mapi::ContactSaveFormat saveFormat)
 Saves this MapiContact to the specified file with a format using the default options. The supported save format is vCard. More...
 
void Save (System::SharedPtr< System::IO::Stream > stream, Aspose::Email::Mapi::ContactSaveFormat saveFormat)
 Saves this Contact to the given stream with a format using the default options. More...
 
void Save (System::SharedPtr< System::IO::Stream > stream, System::SharedPtr< Aspose::Email::Mapi::ContactSaveOptions > saveOptions)
 Saves this Contact to the given stream using specified save options. More...
 
 Contact ()
 
System::String ToString () const override
 Returns a string that represents the current object. More...
 

Static Public Member Functions

static System::SharedPtr< Aspose::Email::Mapi::MapiContactto_MapiContact (System::SharedPtr< Contact > contact)
 
static System::SharedPtr< Contactto_Contact (System::SharedPtr< Aspose::Email::Mapi::MapiContact > contact)
 
static System::SharedPtr< ContactLoad (System::String filePath)
 Loads contact data More...
 
static System::SharedPtr< ContactLoad (System::String filePath, ContactLoadFormat format)
 Loads contact data More...
 
static System::SharedPtr< ContactLoad (System::SharedPtr< System::IO::Stream > stream)
 Loads contact data More...
 
static System::SharedPtr< ContactLoad (System::SharedPtr< System::IO::Stream > stream, ContactLoadFormat format)
 Loads contact data More...
 

Protected Member Functions

virtual ~Contact ()
 

Friends

class Aspose::Email::Clients::Exchange::WebService::ContactEwsConverter
 
class Aspose::Email::Tools::ContactConverter
 

Detailed Description

Represents contact information.

Constructor & Destructor Documentation

◆ Contact()

Aspose::Email::PersonalInfo::Contact::Contact ( )

◆ ~Contact()

virtual Aspose::Email::PersonalInfo::Contact::~Contact ( )
protectedvirtual

Member Function Documentation

◆ get_Account()

System::String Aspose::Email::PersonalInfo::Contact::get_Account ( ) const

Contains the alias of an Address Book object, which is an alternative name by which the object can be identified.

◆ get_AssociatedPersons()

System::SharedPtr<AssociatedPersonsList> Aspose::Email::PersonalInfo::Contact::get_AssociatedPersons ( ) const

Gets list of associated persons

◆ get_Attachments()

System::SharedPtr<AttachmentCollection> Aspose::Email::PersonalInfo::Contact::get_Attachments ( ) const

Gets attachments collection

◆ get_CompanyName()

System::String Aspose::Email::PersonalInfo::Contact::get_CompanyName ( ) const

Gets a company name.

◆ get_ComputerNetworkName()

System::String Aspose::Email::PersonalInfo::Contact::get_ComputerNetworkName ( ) const

Gets a name of the mail user's computer network.

◆ get_CustomerId()

System::String Aspose::Email::PersonalInfo::Contact::get_CustomerId ( ) const

Gets a customer id

◆ get_DepartmentName()

System::String Aspose::Email::PersonalInfo::Contact::get_DepartmentName ( ) const

Gets a department name.

◆ get_DisplayName()

System::String Aspose::Email::PersonalInfo::Contact::get_DisplayName ( ) const

Gets a display name

◆ get_EmailAddresses()

System::SharedPtr<EmailAddressList> Aspose::Email::PersonalInfo::Contact::get_EmailAddresses ( ) const

Gets list of email addresses

◆ get_Events()

System::SharedPtr<EventList> Aspose::Email::PersonalInfo::Contact::get_Events ( ) const

Gets list of events

◆ get_ExtendedProperties()

System::SharedPtr<System::Collections::Generic::Dictionary<System::SharedPtr<Aspose::Email::Mapi::PropertyDescriptor>, System::SharedPtr<System::Object> > > Aspose::Email::PersonalInfo::Contact::get_ExtendedProperties ( ) const

Gets extended properties of contact

◆ get_FileAs()

System::String Aspose::Email::PersonalInfo::Contact::get_FileAs ( ) const

Gets a name used for sorting.

◆ get_FileAsMapping()

Aspose::Email::PersonalInfo::FileAsMapping Aspose::Email::PersonalInfo::Contact::get_FileAsMapping ( ) const

Gets a value which specifies how to generate and recompute the value of the FileAs property when other contact name properties change.

◆ get_FreeBusyLocation()

System::String Aspose::Email::PersonalInfo::Contact::get_FreeBusyLocation ( ) const

Gets URL path from which a client can retrieve free/busy information for the contact as an iCal file

◆ get_Gender()

Aspose::Email::PersonalInfo::Gender Aspose::Email::PersonalInfo::Contact::get_Gender ( ) const

Gets gender of a person.

◆ get_GivenName()

System::String Aspose::Email::PersonalInfo::Contact::get_GivenName ( ) const

Gets 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.

◆ get_GovernmentIdNumber()

System::String Aspose::Email::PersonalInfo::Contact::get_GovernmentIdNumber ( ) const

Gets a government id number

◆ get_Hobbies()

System::String Aspose::Email::PersonalInfo::Contact::get_Hobbies ( ) const

Gets a hobbies

◆ get_Id()

System::SharedPtr<ObjectIdentifier> Aspose::Email::PersonalInfo::Contact::get_Id ( ) const

Gets object identification information

◆ get_Initials()

System::String Aspose::Email::PersonalInfo::Contact::get_Initials ( ) const

Gets an initials

◆ get_InstantMessengers()

System::SharedPtr<InstantMessengerList> Aspose::Email::PersonalInfo::Contact::get_InstantMessengers ( ) const

Gets list of instant messenger addresses

◆ get_JobTitle()

System::String Aspose::Email::PersonalInfo::Contact::get_JobTitle ( ) const

Gets a job title.

◆ get_Language()

System::String Aspose::Email::PersonalInfo::Contact::get_Language ( ) const

Gets a language

◆ get_Location()

System::String Aspose::Email::PersonalInfo::Contact::get_Location ( ) const

Gets location

◆ get_MiddleName()

System::String Aspose::Email::PersonalInfo::Contact::get_MiddleName ( ) const

Gets a middle name that is a part of a person's full name. In some countries people have an additional (middle) name.

◆ get_Nickname()

System::String Aspose::Email::PersonalInfo::Contact::get_Nickname ( ) const

Gets a nickname of a person.

◆ get_Notes()

System::String Aspose::Email::PersonalInfo::Contact::get_Notes ( ) const

Gets a notes

◆ get_NotesFormat()

TextFormat Aspose::Email::PersonalInfo::Contact::get_NotesFormat ( ) const

Gets a format of a notes field.

◆ get_OfficeLocation()

System::String Aspose::Email::PersonalInfo::Contact::get_OfficeLocation ( ) const

Gets office location

◆ get_OrganizationalIdNumber()

System::String Aspose::Email::PersonalInfo::Contact::get_OrganizationalIdNumber ( ) const

Contains an identifier for the mail user used within the mail user's organization.

◆ get_PhoneNumbers()

System::SharedPtr<PhoneNumberList> Aspose::Email::PersonalInfo::Contact::get_PhoneNumbers ( ) const

Gets list of phone numbers

◆ get_Photo()

System::SharedPtr<ContactPhoto> Aspose::Email::PersonalInfo::Contact::get_Photo ( ) const

Gets an image of contact

◆ get_PhysicalAddresses()

System::SharedPtr<PostalAddressList> Aspose::Email::PersonalInfo::Contact::get_PhysicalAddresses ( ) const

Gets list of postal addresses

◆ get_PreferredTextEncoding()

System::SharedPtr<System::Text::Encoding> Aspose::Email::PersonalInfo::Contact::get_PreferredTextEncoding ( )
overridevirtual

Gets preferred encoding for all text properties

Implements Aspose::Email::IPreferredTextEncodingProvider.

◆ get_Prefix()

System::String Aspose::Email::PersonalInfo::Contact::get_Prefix ( ) const

Gets a prefix of a full name such like Mr.(mister), Dr.(doctor) and so on.

◆ get_Profession()

System::String Aspose::Email::PersonalInfo::Contact::get_Profession ( ) const

Gets a job position of a person in a company.

◆ get_Suffix()

System::String Aspose::Email::PersonalInfo::Contact::get_Suffix ( ) const

Gets a suffix of a full name such like Jr.(junior), Sr.(senior) and so on.

◆ get_Surname()

System::String Aspose::Email::PersonalInfo::Contact::get_Surname ( ) const

Gets a surname that is a part of a person's full name. Surname is also known as family name or last name.

◆ get_Urls()

System::SharedPtr<UrlList> Aspose::Email::PersonalInfo::Contact::get_Urls ( ) const

Gets list of urls

◆ Load() [1/4]

static System::SharedPtr<Contact> Aspose::Email::PersonalInfo::Contact::Load ( System::SharedPtr< System::IO::Stream >  stream)
static

Loads contact data

Parameters
streamContact stream
Returns
Returns contact object

◆ Load() [2/4]

static System::SharedPtr<Contact> Aspose::Email::PersonalInfo::Contact::Load ( System::SharedPtr< System::IO::Stream >  stream,
ContactLoadFormat  format 
)
static

Loads contact data

Parameters
streamContact stream
formatRepresents contact format
Returns
Returns contact object

◆ Load() [3/4]

static System::SharedPtr<Contact> Aspose::Email::PersonalInfo::Contact::Load ( System::String  filePath)
static

Loads contact data

Parameters
filePathfile path
Returns
Returns contact object

◆ Load() [4/4]

static System::SharedPtr<Contact> Aspose::Email::PersonalInfo::Contact::Load ( System::String  filePath,
ContactLoadFormat  format 
)
static

Loads contact data

Parameters
filePathfile path
formatRepresents contact format
Returns
Returns contact object

◆ Save() [1/6]

void Aspose::Email::PersonalInfo::Contact::Save ( System::SharedPtr< System::IO::Stream >  stream)

Saves this MapiContact into the given stream with vCard format. The supported vCard version is 2.1

Parameters
streamA stream to save to
Exceptions
ArgumentNullExceptionstream is null
NotSupportedExceptionstream does not support writing

◆ Save() [2/6]

void Aspose::Email::PersonalInfo::Contact::Save ( System::SharedPtr< System::IO::Stream >  stream,
Aspose::Email::Mapi::ContactSaveFormat  saveFormat 
)

Saves this Contact to the given stream with a format using the default options.

Parameters
streamA stream to save to
saveFormatA save format

◆ Save() [3/6]

void Aspose::Email::PersonalInfo::Contact::Save ( System::SharedPtr< System::IO::Stream >  stream,
System::SharedPtr< Aspose::Email::Mapi::ContactSaveOptions saveOptions 
)

Saves this Contact to the given stream using specified save options.

Parameters
streamA stream to save to
saveOptionsA save options

◆ Save() [4/6]

void Aspose::Email::PersonalInfo::Contact::Save ( System::String  filePath)

Saves this MapiContact to the vCard file with a default options. The supported vCard version is 2.1

Parameters
filePathA vCard file name
Exceptions
ArgumentExceptionfilePath is null or empty

◆ Save() [5/6]

void Aspose::Email::PersonalInfo::Contact::Save ( System::String  filePath,
Aspose::Email::Mapi::ContactSaveFormat  saveFormat 
)

Saves this MapiContact to the specified file with a format using the default options. The supported save format is vCard.

Parameters
filePathA vCard file name
saveFormatA save format

◆ Save() [6/6]

void Aspose::Email::PersonalInfo::Contact::Save ( System::String  filePath,
System::SharedPtr< Aspose::Email::Mapi::ContactSaveOptions saveOptions 
)

Saves this MapiContact into file using specified save options. The supported save options is VCardSaveOptions

Parameters
filePathA vCard file name
saveOptionsA save options
Exceptions
ArgumentExceptionfilePath is null or empty
ArgumentNullExceptionsaveOptions is null
NotSupportedExceptionsome save option is not supported

◆ set_Account()

void Aspose::Email::PersonalInfo::Contact::set_Account ( System::String  value)

Contains the alias of an Address Book object, which is an alternative name by which the object can be identified.

◆ set_CompanyName()

void Aspose::Email::PersonalInfo::Contact::set_CompanyName ( System::String  value)

Sets a company name.

◆ set_ComputerNetworkName()

void Aspose::Email::PersonalInfo::Contact::set_ComputerNetworkName ( System::String  value)

Sets a name of the mail user's computer network.

◆ set_CustomerId()

void Aspose::Email::PersonalInfo::Contact::set_CustomerId ( System::String  value)

Sets a customer id

◆ set_DepartmentName()

void Aspose::Email::PersonalInfo::Contact::set_DepartmentName ( System::String  value)

Sets a department name.

◆ set_DisplayName()

void Aspose::Email::PersonalInfo::Contact::set_DisplayName ( System::String  value)

Sets a display name

◆ set_FileAs()

void Aspose::Email::PersonalInfo::Contact::set_FileAs ( System::String  value)

Sets a name used for sorting.

◆ set_FileAsMapping()

void Aspose::Email::PersonalInfo::Contact::set_FileAsMapping ( Aspose::Email::PersonalInfo::FileAsMapping  value)

Sets a value which specifies how to generate and recompute the value of the FileAs property when other contact name properties change.

◆ set_FreeBusyLocation()

void Aspose::Email::PersonalInfo::Contact::set_FreeBusyLocation ( System::String  value)

Sets URL path from which a client can retrieve free/busy information for the contact as an iCal file

◆ set_Gender()

void Aspose::Email::PersonalInfo::Contact::set_Gender ( Aspose::Email::PersonalInfo::Gender  value)

Sets gender of a person.

◆ set_GivenName()

void Aspose::Email::PersonalInfo::Contact::set_GivenName ( System::String  value)

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.

◆ set_GovernmentIdNumber()

void Aspose::Email::PersonalInfo::Contact::set_GovernmentIdNumber ( System::String  value)

Sets a government id number

◆ set_Hobbies()

void Aspose::Email::PersonalInfo::Contact::set_Hobbies ( System::String  value)

Sets a hobbies

◆ set_Initials()

void Aspose::Email::PersonalInfo::Contact::set_Initials ( System::String  value)

Sets an initials

◆ set_JobTitle()

void Aspose::Email::PersonalInfo::Contact::set_JobTitle ( System::String  value)

Sets a job title.

◆ set_Language()

void Aspose::Email::PersonalInfo::Contact::set_Language ( System::String  value)

Sets a language

◆ set_Location()

void Aspose::Email::PersonalInfo::Contact::set_Location ( System::String  value)

Sets location

◆ set_MiddleName()

void Aspose::Email::PersonalInfo::Contact::set_MiddleName ( System::String  value)

Sets a middle name that is a part of a person's full name. In some countries people have an additional (middle) name.

◆ set_Nickname()

void Aspose::Email::PersonalInfo::Contact::set_Nickname ( System::String  value)

Sets a nickname of a person.

◆ set_Notes()

void Aspose::Email::PersonalInfo::Contact::set_Notes ( System::String  value)

Sets a notes

◆ set_NotesFormat()

void Aspose::Email::PersonalInfo::Contact::set_NotesFormat ( TextFormat  value)

Sets a format of a notes field.

◆ set_OfficeLocation()

void Aspose::Email::PersonalInfo::Contact::set_OfficeLocation ( System::String  value)

Sets office location

◆ set_OrganizationalIdNumber()

void Aspose::Email::PersonalInfo::Contact::set_OrganizationalIdNumber ( System::String  value)

Contains an identifier for the mail user used within the mail user's organization.

◆ set_Photo()

void Aspose::Email::PersonalInfo::Contact::set_Photo ( System::SharedPtr< ContactPhoto value)

Sets an image of contact

◆ set_PreferredTextEncoding()

void Aspose::Email::PersonalInfo::Contact::set_PreferredTextEncoding ( System::SharedPtr< System::Text::Encoding >  value)
overridevirtual

Sets preferred encoding for all text properties

Implements Aspose::Email::IPreferredTextEncodingProvider.

◆ set_Prefix()

void Aspose::Email::PersonalInfo::Contact::set_Prefix ( System::String  value)

Sets a prefix of a full name such like Mr.(mister), Dr.(doctor) and so on.

◆ set_Profession()

void Aspose::Email::PersonalInfo::Contact::set_Profession ( System::String  value)

Sets a job position of a person in a company.

◆ set_Suffix()

void Aspose::Email::PersonalInfo::Contact::set_Suffix ( System::String  value)

Sets a suffix of a full name such like Jr.(junior), Sr.(senior) and so on.

◆ set_Surname()

void Aspose::Email::PersonalInfo::Contact::set_Surname ( System::String  value)

Sets a surname that is a part of a person's full name. Surname is also known as family name or last name.

◆ to_Contact()

static System::SharedPtr<Contact> Aspose::Email::PersonalInfo::Contact::to_Contact ( System::SharedPtr< Aspose::Email::Mapi::MapiContact contact)
static

◆ to_MapiContact()

static System::SharedPtr<Aspose::Email::Mapi::MapiContact> Aspose::Email::PersonalInfo::Contact::to_MapiContact ( System::SharedPtr< Contact contact)
static

◆ ToString()

System::String Aspose::Email::PersonalInfo::Contact::ToString ( ) const
override

Returns a string that represents the current object.

Returns
A string that represents the current object.

Friends And Related Function Documentation

◆ Aspose::Email::Clients::Exchange::WebService::ContactEwsConverter

friend class Aspose::Email::Clients::Exchange::WebService::ContactEwsConverter
friend

◆ Aspose::Email::Tools::ContactConverter

friend class Aspose::Email::Tools::ContactConverter
friend