Represents outlook contact information More...

Inherits Aspose::Email::Mapi::MapiMessageItemBase.

Public Member Functions

System::String get_ItemId () override
 Uses to specify the server id of the contact EWS only More...
 
void set_ItemId (System::String value) override
 Uses to specify the server id of the contact EWS only More...
 
System::String get_GoogleId () const
 Uses to specify the server URI of the contact GmailClient only More...
 
void set_GoogleId (System::String value)
 Uses to specify the server URI of the contact GmailClient only More...
 
System::String get_PidTagUrlName () const
 Uses to specify the server URI of the contact WebDav only More...
 
void set_PidTagUrlName (System::String value)
 Uses to specify the server URI of the contact WebDav only More...
 
System::SharedPtr< Aspose::Email::Mapi::MapiContactNamePropertySetget_NameInfo () const
 The properties are used to specify the name of the person represented by the contact More...
 
void set_NameInfo (System::SharedPtr< Aspose::Email::Mapi::MapiContactNamePropertySet > value)
 The properties are used to specify the name of the person represented by the contact More...
 
System::SharedPtr< Aspose::Email::Mapi::MapiContactPersonalInfoPropertySetget_PersonalInfo () const
 Specify other additional contact information More...
 
void set_PersonalInfo (System::SharedPtr< Aspose::Email::Mapi::MapiContactPersonalInfoPropertySet > value)
 Specify other additional contact information More...
 
System::SharedPtr< Aspose::Email::Mapi::MapiContactProfessionalPropertySetget_ProfessionalInfo () const
 Properties are used to store professional details for the person represented by the contact More...
 
void set_ProfessionalInfo (System::SharedPtr< Aspose::Email::Mapi::MapiContactProfessionalPropertySet > value)
 Properties are used to store professional details for the person represented by the contact More...
 
System::SharedPtr< Aspose::Email::Mapi::MapiContactTelephonePropertySetget_Telephones () const
 Specify telephone numbers for the contact More...
 
void set_Telephones (System::SharedPtr< Aspose::Email::Mapi::MapiContactTelephonePropertySet > value)
 Specify telephone numbers for the contact More...
 
System::SharedPtr< Aspose::Email::Mapi::MapiContactElectronicAddressPropertySetget_ElectronicAddresses () const
 Specify properties for up to three different e-mail addresses
and three different fax addresses More...
 
void set_ElectronicAddresses (System::SharedPtr< Aspose::Email::Mapi::MapiContactElectronicAddressPropertySet > value)
 Specify properties for up to three different e-mail addresses
and three different fax addresses More...
 
System::SharedPtr< Aspose::Email::Mapi::MapiContactPhysicalAddressPropertySetget_PhysicalAddresses () const
 Specify three physical addresses: Home Address, Work Address, and Other Address. One of the addresses can be marked as the Mailing Address More...
 
void set_PhysicalAddresses (System::SharedPtr< Aspose::Email::Mapi::MapiContactPhysicalAddressPropertySet > value)
 Specify three physical addresses: Home Address, Work Address, and Other Address. One of the addresses can be marked as the Mailing Address More...
 
System::SharedPtr< Aspose::Email::Mapi::MapiContactEventPropertySetget_Events () const
 Specify events associated with a contact More...
 
void set_Events (System::SharedPtr< Aspose::Email::Mapi::MapiContactEventPropertySet > value)
 Specify events associated with a contact More...
 
System::SharedPtr< Aspose::Email::Mapi::MapiContactOtherPropertySetget_OtherFields () const
 Specify other fields of conhtact. More...
 
void set_OtherFields (System::SharedPtr< Aspose::Email::Mapi::MapiContactOtherPropertySet > value)
 Specify other fields of conhtact. More...
 
System::SharedPtr< Aspose::Email::Mapi::MapiContactPhotoget_Photo () const
 Contains contact photoMapiContactPhoto. More...
 
void set_Photo (System::SharedPtr< Aspose::Email::Mapi::MapiContactPhoto > value)
 Contains contact photoMapiContactPhoto. More...
 
System::SharedPtr< Aspose::Email::Mapi::MapiAttachmentCollectionget_Attachments () const
 Gets the attachments in the contact. More...
 
 MapiContact ()
 Initializes a new instance of the MapiContact class More...
 
 MapiContact (System::String displayName, System::String electonicAddress)
 Initializes a new instance of the MapiContact class. More...
 
 MapiContact (System::String displayName, System::String electonicAddress, System::String companyName)
 Initializes a new instance of the MapiContact class. More...
 
 MapiContact (System::String displayName, System::String electonicAddress, System::String companyName, System::String primaryTelephoneNumber)
 Initializes a new instance of the MapiContact class. More...
 
 MapiContact (System::SharedPtr< Aspose::Email::Mapi::MapiMessage > msg)
 Initializes a new instance of the MapiContact class basing on the given message More...
 
 MapiContact (System::SharedPtr< Aspose::Email::Mapi::MapiContactNamePropertySet > nameInfo, System::SharedPtr< Aspose::Email::Mapi::MapiContactPersonalInfoPropertySet > personalInfo, System::SharedPtr< Aspose::Email::Mapi::MapiContactProfessionalPropertySet > professionalInfo, System::SharedPtr< Aspose::Email::Mapi::MapiContactTelephonePropertySet > telephones, System::SharedPtr< Aspose::Email::Mapi::MapiContactElectronicAddressPropertySet > electronicAddresses, System::SharedPtr< Aspose::Email::Mapi::MapiContactPhysicalAddressPropertySet > physicalAddresses, System::SharedPtr< Aspose::Email::Mapi::MapiContactEventPropertySet > events, System::String subject, System::String messageClass, System::String itemId, System::String body)
 
 MapiContact (System::SharedPtr< Aspose::Email::PersonalInfo::VCard::VCardHeaderList > properties)
 Initializes a new instance of the MapiContact class basing on the given vCard properties More...
 
System::SharedPtr< Aspose::Email::Mapi::MapiMessageGetUnderlyingMessage ()
 Get the MapiMessage that represent contact. 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, 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::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::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::SharedPtr< System::IO::Stream > stream, Aspose::Email::Mapi::ContactSaveFormat saveFormat)
 Saves this MapiContact to the given stream with a format using the default options. The supported save format is vCard More...
 
void Save (System::SharedPtr< System::IO::Stream > stream, System::SharedPtr< Aspose::Email::Mapi::ContactSaveOptions > saveOptions)
 Saves this MapiContact to the given stream using specified save options. The supported save options is VCardSaveOptions More...
 
void SetBodyContent (System::String content, Aspose::Email::Mapi::BodyContentType contentType) override
 Sets the content of the body. More...
 
System::SharedPtr< Aspose::Email::Mapi::MapiMessageConvertToMapiMessage () override
 Converts contact object to mapi message More...
 
- Public Member Functions inherited from Aspose::Email::Mapi::MapiMessageItemBase
System::SharedPtr< MapiAttachmentCollectionget_Attachments ()
 Gets the attachments in the message. More...
 
void set_Attachments (System::SharedPtr< MapiAttachmentCollection > value)
 Gets the attachments in the message. More...
 
System::SharedPtr< MapiPropertyStreamget_PropertyStream ()
 Gets the property stream. More...
 
System::SharedPtr< MapiPropertyCollectionget_NamedProperties ()
 Gets the named properties of message. More...
 
System::SharedPtr< MapiRecipientCollectionget_Recipients ()
 Gets the recipients of the message. More...
 
void set_Recipients (System::SharedPtr< MapiRecipientCollection > value)
 Gets the recipients of the message. More...
 
System::SharedPtr< MapiPropertyCollectionget_SubStorages ()
 Gets the sub storages. More...
 
System::SharedPtr< MapiNamedPropertyMappingStorageget_NamedPropertyMapping ()
 Gets the named property mapping. More...
 
System::String get_SubjectPrefix ()
 Gets a subject prefix that typically indicates some action on a message, such as "FW: " for forwarding. More...
 
BodyContentType get_BodyType ()
 Gets the type of the body. More...
 
System::String get_BodyRtf ()
 Gets the RTF formatted message text. More...
 
void set_BodyRtf (System::String value)
 Sets the RTF formatted message text. More...
 
System::String get_BodyHtml ()
 Gets the BodyRtf of the message converted to HTML, if present, otherwise an empty string. More...
 
System::ArrayPtr< System::String > get_Companies ()
 Contains the names of the companies that are associated with an item. More...
 
void set_Companies (System::ArrayPtr< System::String > value)
 Contains the names of the companies that are associated with an item. More...
 
System::ArrayPtr< System::String > get_Categories ()
 Contains keywords or categories for the message object. More...
 
void set_Categories (System::ArrayPtr< System::String > value)
 Contains keywords or categories for the message object. More...
 
System::String get_Mileage ()
 Contains the mileage information that is associated with an item. More...
 
void set_Mileage (System::String value)
 Contains the mileage information that is associated with an item. More...
 
System::String get_Billing ()
 Contains the billing information associated with an item. More...
 
void set_Billing (System::String value)
 Contains the billing information associated with an item. More...
 
Aspose::Email::Storage::Pst::MapiSensitivity get_Sensitivity ()
 Gets the Sensitivity. More...
 
void set_Sensitivity (Aspose::Email::Storage::Pst::MapiSensitivity value)
 Gets the Sensitivity. More...
 
System::String get_MessageClass () override
 Gets a case-sensitive string that identifies the sender-defined message class, such as IPM.Note. The message class specifies the type, purpose, or content of the message. More...
 
void set_MessageClass (System::String value)
 Gets a case-sensitive string that identifies the sender-defined message class, such as IPM.Note. The message class specifies the type, purpose, or content of the message. More...
 
System::String get_Body () override
 Gets the message text. More...
 
void set_Body (System::String value) override
 Gets the message text. More...
 
System::String get_Subject () override
 Gets the subject of the message. More...
 
void set_Subject (System::String value) override
 Sets the subject of the message. More...
 
System::SharedPtr< System::Object > get_VentureLicenseObj () const
 This stores the venture licensing state instead of 2 obvious fields such as string value for watermark and some value indicating license is set or not. More...
 
System::SharedPtr< MapiPropertyGetProperty (System::SharedPtr< PropertyDescriptor > pd) override
 Gets MAPI property by property descriptor. More...
 
bool TryGetNamedProperty (System::SharedPtr< MapiProperty > mapiProperty, System::SharedPtr< MapiNamedProperty > &mapiNamedProperty) override
 If MapiNamedPropertyMappingStorage is available, initializes and returns MapiNamedProperty, otherwise null. More...
 
void SetProperty (System::SharedPtr< PropertyDescriptor > pd, System::SharedPtr< System::Object > value) override
 Sets MAPI property. More...
 
void SetStringNamedProperty (System::String value, MapiNamedPropertyId nameId, System::Guid psetId)
 
void SetsIMapiMessageItemMembers (System::String messageClass, System::String body, System::String subject)
 Sets MessageClass,Body and Subject. More...
 
void Dispose () override
 Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More...
 
void SetNamedPropertyMapping (System::SharedPtr< MapiNamedPropertyMappingStorage > value)
 Sets the named property mapping. More...
 
int64_t GetTagFromNamedProperty (MapiNamedPropertyId propertyId)
 Gets the tag from named property. More...
 
int64_t GetTagFromNamedProperty (System::String name)
 Gets the tag from named property. More...
 
void AddNamedProperty (MapiPropertyType type, System::ArrayPtr< uint8_t > data, int64_t nameId, System::Guid guid)
 Adds the named property. More...
 
void AddNamedProperty (MapiPropertyType type, System::ArrayPtr< uint8_t > data, int64_t nameId, System::Guid guid, System::SharedPtr< System::Collections::Generic::IList< System::SharedPtr< System::Object >>> mvEntries)
 Adds the named property. More...
 
void AddNamedProperty (MapiPropertyType type, System::ArrayPtr< uint8_t > data, System::String nameId, System::Guid guid)
 Adds the named property. More...
 
void AddNamedProperty (MapiPropertyType type, System::ArrayPtr< uint8_t > data, System::String nameId, System::Guid guid, System::SharedPtr< System::Collections::Generic::IList< System::SharedPtr< System::Object >>> mvEntries)
 Adds the named property. More...
 
int64_t AddNamedPropertyToEmbeddedMsg (System::SharedPtr< MapiMessage > msg, MapiPropertyType type, System::ArrayPtr< uint8_t > data, System::SharedPtr< System::Object > nameId, System::Guid guid)
 Adds the named property to embedded message. More...
 
void SetBodyRtf (System::String content, bool compression)
 Gets or sets the RTF formatted message text. More...
 
virtual void SetBodyContent (System::String content, BodyContentType contentType, bool compression)
 Sets the content of the body. More...
 
void SetMessageFlags (MapiMessageFlags flags)
 Sets the message flags. More...
 
void RemoveProperty (int64_t tag)
 Provides correctly removing property from all collections. More...
 
void SetVentureLicense (System::SharedPtr< System::Object > ventureLicense)
 All Aspose products should implement this method. It is called by a GroupDocs product to indicate whether GroupDocs itself is licensed or not and specify a custom watermark. When GroupDocs is licensed, this document instance should behave as licensed too even if the Aspose product is not licensed. More...
 
void UpdateHasAttach ()
 Updates the PR_HASATTACH property value. More...
 
void UpdateDisplayNames (MapiRecipientType recipientType)
 Updates the display names. More...
 
void AddNamedProperty (System::DateTime value, int64_t nameId, System::Guid guid)
 Adds the named datetime property. More...
 
void AddNamedProperty (System::DateTime value, MapiNamedPropertyId nameId, System::Guid guid)
 Adds the named datetime property. More...
 
void AddNamedProperty (bool value, MapiNamedPropertyId nameId, System::Guid guid)
 Adds the named bool property. More...
 
void AddNamedProperty (bool value, int64_t nameId, System::Guid guid)
 Adds the named bool property. More...
 
void AddNamedPropertyLong (int64_t value, MapiNamedPropertyId nameId, System::Guid guid)
 Adds the named long property. More...
 
void AddNamedPropertyLong (int64_t value, int64_t nameId, System::Guid guid)
 Adds the named long property. More...
 
void AddNamedProperty (System::String value, OutlookMessageFormat format, MapiNamedPropertyId nameId, System::Guid guid)
 Adds the named string property. More...
 
void AddNamedProperty (System::String value, MapiNamedPropertyId nameId, System::Guid guid)
 Adds the named string property. More...
 
void AddNamedProperty (System::String value, OutlookMessageFormat format, int64_t nameId, System::Guid guid)
 Adds the named string property. More...
 
void AddNamedProperty (System::ArrayPtr< uint8_t > value, int64_t nameId, System::Guid guid)
 Adds the named binary property. More...
 
void AddNamedProperty (System::ArrayPtr< uint8_t > value, MapiNamedPropertyId nameId, System::Guid guid)
 Adds the named binary property. More...
 
- Public Member Functions inherited from Aspose::Email::Mapi::MapiPropertyContainer
virtual System::SharedPtr< MapiPropertyCollectionget_Properties ()
 Gets the collection of properties. More...
 
virtual int32_t get_CodePage ()
 Gets the code page. More...
 
System::SharedPtr< System::Text::Encoding > get_CurrentEncoding ()
 
 MapiPropertyContainer ()
 Initializes a new instance of the MapiPropertyContainer class. More...
 
 MapiPropertyContainer (System::SharedPtr< MapiPropertyCollection > properties)
 Initializes a new instance of the MapiPropertyContainer class. More...
 
System::SharedPtr< MapiPropertyCollectionGetSubStorages ()
 
System::String TryGetPropertyString (int64_t tag, int32_t codepage)
 Try to get a property data as string with specified tag and code page. More...
 
System::ArrayPtr< uint8_t > TryGetPropertyData (int64_t tag)
 Try to get the property data with specified tag key. More...
 
System::String TryGetPropertyString (int64_t tag)
 Try to get a property data as string with specified tag. More...
 
System::String GetPropertyString (int64_t tag, int32_t codepage)
 Gets the string value of the property specified by tag. More...
 
System::String GetPropertyString (int64_t tag)
 Gets the string value of the property specified by tag. More...
 
System::ArrayPtr< uint8_t > GetPropertyBytes (int64_t tag)
 Gets the string value of the property specified by tag. More...
 
virtual void SetProperty (System::SharedPtr< MapiProperty > value)
 Sets the property. More...
 
System::Nullable< int32_t > GetPropertyInt32 (int64_t tag)
 Gets the int32 value of the property specified by tag. More...
 
System::Nullable< int64_t > GetPropertyLong (int64_t tag)
 Gets the value of the property specified by tag as Long (int64) type. More...
 
System::Nullable< int16_t > GetPropertyShort (int64_t tag)
 Gets the value of the property specified by tag as Short type. More...
 
System::Nullable< bool > GetPropertyBoolean (int64_t tag)
 Gets the value of the property specified by tag as Boolean type. More...
 
System::Nullable< System::DateTime > GetPropertyDateTime (int64_t key)
 Gets the value of the property specified by tag as DateTime type. More...
 
bool IsStoreUnicodeOk ()
 Determines if string properties are Unicode encoded or not. More...
 
bool TryGetPropertyString (int64_t tag, System::String &value, int32_t codepage)
 Gets the value of the specified property as String type. A return value indicates whether the operation succeeded. More...
 
bool TryGetPropertyString (int64_t tag, System::String &value)
 Gets the value of the specified property as String type. A return value indicates whether the operation succeeded. More...
 
bool TryGetPropertyDateTime (int64_t tag, System::DateTime &value)
 Gets the value of the specified property as DateTime type. A return value indicates whether the operation succeeded. More...
 
bool TryGetPropertyLong (int64_t tag, int64_t &value)
 Gets the value of the specified property as Long type. A return value indicates whether the operation succeeded. More...
 
bool TryGetPropertyInt32 (int64_t tag, int32_t &value)
 Gets the value of the specified property as Int32 type. A return value indicates whether the operation succeeded. More...
 
virtual System::SharedPtr< Nodes::IMapiNode > CreateMapiNode (System::String key)
 Creates the mapi node. More...
 
void SetProperty (int64_t tag, System::ArrayPtr< uint8_t > data)
 Set the property. More...
 
void SetProperty (int64_t tag, System::String value, OutlookMessageFormat format)
 Set the string property. More...
 
void SetProperty (int64_t tag, System::String value, bool isUnicode)
 Set the string property. More...
 
void SetProperty (int64_t tag, System::String value, System::SharedPtr< System::Text::Encoding > nonUnicodeEncoding)
 Set the string property. More...
 
void SetProperty (int64_t tag, System::String value)
 Set the string property with CurrentEncoding More...
 
void SetProperty (int64_t tag, System::DateTime dateTime)
 Set the datetime property. More...
 
void SetPropertyLong (int64_t tag, int64_t value)
 Set the long property. More...
 

Static Public Member Functions

static System::SharedPtr< Aspose::Email::Mapi::MapiContactFromVCard (System::String filePath)
 Reads MapiContact from the specified vCard file The supported vCard versions are 2.1 and 3.0 More...
 
static System::SharedPtr< Aspose::Email::Mapi::MapiContactFromVCard (System::String filePath, System::SharedPtr< System::Text::Encoding > encoding)
 Reads MapiContact from the specified vCard file The supported vCard versions are 2.1 and 3.0 More...
 
static System::SharedPtr< Aspose::Email::Mapi::MapiContactFromVCard (System::SharedPtr< System::IO::Stream > stream)
 Reads MapiContact from the specified stream containing vCard. The supported vCard versions are 2.1 and 3.0 More...
 
static System::SharedPtr< Aspose::Email::Mapi::MapiContactFromVCard (System::SharedPtr< System::IO::Stream > stream, System::SharedPtr< System::Text::Encoding > encoding)
 Reads MapiContact from the specified stream containing vCard. The supported vCard versions are 2.1 and 3.0 More...
 
- Static Public Member Functions inherited from Aspose::Email::Mapi::MapiMessageItemBase
static void SetPriority (System::SharedPtr< MapiMessageItemBase > message, MailPriority priority)
 Sets MailPriority value for MapiMessageItemBase See more PidTagPriority mapi property: https://msdn.microsoft.com/en-us/library/ee159473(v=exchg.80).aspx See more PidTagImportance mapi property: https://msdn.microsoft.com/en-us/library/ee237166(v=exchg.80).aspx More...
 

Static Public Attributes

static const System::String ContactClass
 Represents message class. More...
 
- Static Public Attributes inherited from Aspose::Email::Mapi::MapiPropertyContainer
static const int32_t DefaultCodePage
 

Protected Member Functions

virtual ~MapiContact ()
 
- Protected Member Functions inherited from Aspose::Email::Mapi::MapiMessageItemBase
 MapiMessageItemBase ()
 Initializes a new instance of the MapiMessageItemBase class. More...
 
 MapiMessageItemBase (System::SharedPtr< MapiPropertyCollection > properties)
 Initializes a new instance of the MapiMessageItemBase class. More...
 
void CheckIsDisposed ()
 Checks if the object is disposed and raised exception in this case. More...
 
void InitNamedPropertyMappingStorage ()
 Inits the named property mapping storage. More...
 
virtual ~MapiMessageItemBase ()
 

Friends

class Aspose::Email::Clients::Exchange::WebService::ContactEwsConverter
 
class Aspose::Email::Tools::ContactConverter
 
class Aspose::Email::Clients::Exchange::Dav::ExchangeClient
 
class Aspose::Email::Clients::Exchange::WebService::Implementation::Contacts::Create::EwsClientContactCreate
 
class Aspose::Email::Clients::Exchange::WebService::Implementation::Contacts::Update::EwsClientContactUpdate
 
class Aspose::Email::Mapi::MapiMessage
 
class Aspose::Email::PersonalInfo::Contact
 

Additional Inherited Members

- Public Attributes inherited from Aspose::Email::Mapi::MapiMessageItemBase
System::SharedPtr< MapiNamedPropertyMappingStoragenamedPropertyMappingStorage
 The named property mapping storage. More...
 
- Public Attributes inherited from Aspose::Email::Mapi::MapiPropertyContainer
int32_t codePage
 The code page. More...
 
System::SharedPtr< MapiPropertyCollectionpropertyDictionary
 The property dictionary. More...
 
- Protected Attributes inherited from Aspose::Email::Mapi::MapiMessageItemBase
System::SharedPtr< MapiAttachmentCollectionattachments
 The collection of attachments. More...
 
System::SharedPtr< MapiRecipientCollectionrecipients
 The collection of recipients. More...
 

Detailed Description

Represents outlook contact information

Constructor & Destructor Documentation

◆ MapiContact() [1/7]

Aspose::Email::Mapi::MapiContact::MapiContact ( )

Initializes a new instance of the MapiContact class

◆ MapiContact() [2/7]

Aspose::Email::Mapi::MapiContact::MapiContact ( System::String  displayName,
System::String  electonicAddress 
)

Initializes a new instance of the MapiContact class.

Parameters
displayNameThe display name.
electonicAddressThe electonic address.

◆ MapiContact() [3/7]

Aspose::Email::Mapi::MapiContact::MapiContact ( System::String  displayName,
System::String  electonicAddress,
System::String  companyName 
)

Initializes a new instance of the MapiContact class.

Parameters
displayNameThe display name.
electonicAddressThe electonic address.
companyNameName of the company.

◆ MapiContact() [4/7]

Aspose::Email::Mapi::MapiContact::MapiContact ( System::String  displayName,
System::String  electonicAddress,
System::String  companyName,
System::String  primaryTelephoneNumber 
)

Initializes a new instance of the MapiContact class.

Parameters
displayNameThe display name.
electonicAddressThe electonic address.
companyNameName of the company.
primaryTelephoneNumberThe telephone number.

◆ MapiContact() [5/7]

Aspose::Email::Mapi::MapiContact::MapiContact ( System::SharedPtr< Aspose::Email::Mapi::MapiMessage msg)

Initializes a new instance of the MapiContact class basing on the given message

Parameters
msgA MapiMessage

◆ MapiContact() [6/7]

Aspose::Email::Mapi::MapiContact::MapiContact ( System::SharedPtr< Aspose::Email::Mapi::MapiContactNamePropertySet nameInfo,
System::SharedPtr< Aspose::Email::Mapi::MapiContactPersonalInfoPropertySet personalInfo,
System::SharedPtr< Aspose::Email::Mapi::MapiContactProfessionalPropertySet professionalInfo,
System::SharedPtr< Aspose::Email::Mapi::MapiContactTelephonePropertySet telephones,
System::SharedPtr< Aspose::Email::Mapi::MapiContactElectronicAddressPropertySet electronicAddresses,
System::SharedPtr< Aspose::Email::Mapi::MapiContactPhysicalAddressPropertySet physicalAddresses,
System::SharedPtr< Aspose::Email::Mapi::MapiContactEventPropertySet events,
System::String  subject,
System::String  messageClass,
System::String  itemId,
System::String  body 
)

◆ MapiContact() [7/7]

Aspose::Email::Mapi::MapiContact::MapiContact ( System::SharedPtr< Aspose::Email::PersonalInfo::VCard::VCardHeaderList >  properties)

Initializes a new instance of the MapiContact class basing on the given vCard properties

Parameters
propertiesAn VCardHeaderList which define a mapi contact
Exceptions
ArgumentNullExceptionproperties is null

◆ ~MapiContact()

virtual Aspose::Email::Mapi::MapiContact::~MapiContact ( )
protectedvirtual

Member Function Documentation

◆ ConvertToMapiMessage()

System::SharedPtr<Aspose::Email::Mapi::MapiMessage> Aspose::Email::Mapi::MapiContact::ConvertToMapiMessage ( )
overridevirtual

Converts contact object to mapi message

Returns
MapiMessage that represents a MAPI message

Reimplemented from Aspose::Email::Mapi::MapiMessageItemBase.

◆ FromVCard() [1/4]

static System::SharedPtr<Aspose::Email::Mapi::MapiContact> Aspose::Email::Mapi::MapiContact::FromVCard ( System::SharedPtr< System::IO::Stream >  stream)
static

Reads MapiContact from the specified stream containing vCard. The supported vCard versions are 2.1 and 3.0

Parameters
streamA stream to read from
Returns
A read MapiContact
Exceptions
ArgumentNullExceptionstream is null
NotSupportedExceptionstream does not support reading

◆ FromVCard() [2/4]

static System::SharedPtr<Aspose::Email::Mapi::MapiContact> Aspose::Email::Mapi::MapiContact::FromVCard ( System::SharedPtr< System::IO::Stream >  stream,
System::SharedPtr< System::Text::Encoding >  encoding 
)
static

Reads MapiContact from the specified stream containing vCard. The supported vCard versions are 2.1 and 3.0

Parameters
streamA stream to read from
encodingStream data encoding
Returns
A read MapiContact
Exceptions
ArgumentNullExceptionstream is null
NotSupportedExceptionstream does not support reading

◆ FromVCard() [3/4]

static System::SharedPtr<Aspose::Email::Mapi::MapiContact> Aspose::Email::Mapi::MapiContact::FromVCard ( System::String  filePath)
static

Reads MapiContact from the specified vCard file The supported vCard versions are 2.1 and 3.0

Parameters
filePathA file name to read from
Returns
A read MapiContact
Exceptions
ArgumentExceptionfilePath is null or empty

◆ FromVCard() [4/4]

static System::SharedPtr<Aspose::Email::Mapi::MapiContact> Aspose::Email::Mapi::MapiContact::FromVCard ( System::String  filePath,
System::SharedPtr< System::Text::Encoding >  encoding 
)
static

Reads MapiContact from the specified vCard file The supported vCard versions are 2.1 and 3.0

Parameters
filePathA file name to read from
encodingFile data encoding
Returns
A read MapiContact
Exceptions
ArgumentExceptionfilePath is null or empty

◆ get_Attachments()

System::SharedPtr<Aspose::Email::Mapi::MapiAttachmentCollection> Aspose::Email::Mapi::MapiContact::get_Attachments ( ) const

Gets the attachments in the contact.

The attachment collection.

◆ get_ElectronicAddresses()

System::SharedPtr<Aspose::Email::Mapi::MapiContactElectronicAddressPropertySet> Aspose::Email::Mapi::MapiContact::get_ElectronicAddresses ( ) const

Specify properties for up to three different e-mail addresses
and three different fax addresses

◆ get_Events()

System::SharedPtr<Aspose::Email::Mapi::MapiContactEventPropertySet> Aspose::Email::Mapi::MapiContact::get_Events ( ) const

Specify events associated with a contact

◆ get_GoogleId()

System::String Aspose::Email::Mapi::MapiContact::get_GoogleId ( ) const

Uses to specify the server URI of the contact GmailClient only

◆ get_ItemId()

System::String Aspose::Email::Mapi::MapiContact::get_ItemId ( )
overridevirtual

Uses to specify the server id of the contact EWS only

Reimplemented from Aspose::Email::Mapi::MapiMessageItemBase.

◆ get_NameInfo()

System::SharedPtr<Aspose::Email::Mapi::MapiContactNamePropertySet> Aspose::Email::Mapi::MapiContact::get_NameInfo ( ) const

The properties are used to specify the name of the person represented by the contact

◆ get_OtherFields()

System::SharedPtr<Aspose::Email::Mapi::MapiContactOtherPropertySet> Aspose::Email::Mapi::MapiContact::get_OtherFields ( ) const

Specify other fields of conhtact.

◆ get_PersonalInfo()

System::SharedPtr<Aspose::Email::Mapi::MapiContactPersonalInfoPropertySet> Aspose::Email::Mapi::MapiContact::get_PersonalInfo ( ) const

Specify other additional contact information

◆ get_Photo()

System::SharedPtr<Aspose::Email::Mapi::MapiContactPhoto> Aspose::Email::Mapi::MapiContact::get_Photo ( ) const

Contains contact photoMapiContactPhoto.

◆ get_PhysicalAddresses()

System::SharedPtr<Aspose::Email::Mapi::MapiContactPhysicalAddressPropertySet> Aspose::Email::Mapi::MapiContact::get_PhysicalAddresses ( ) const

Specify three physical addresses: Home Address, Work Address, and Other Address. One of the addresses can be marked as the Mailing Address

◆ get_PidTagUrlName()

System::String Aspose::Email::Mapi::MapiContact::get_PidTagUrlName ( ) const

Uses to specify the server URI of the contact WebDav only

◆ get_ProfessionalInfo()

System::SharedPtr<Aspose::Email::Mapi::MapiContactProfessionalPropertySet> Aspose::Email::Mapi::MapiContact::get_ProfessionalInfo ( ) const

Properties are used to store professional details for the person represented by the contact

◆ get_Telephones()

System::SharedPtr<Aspose::Email::Mapi::MapiContactTelephonePropertySet> Aspose::Email::Mapi::MapiContact::get_Telephones ( ) const

Specify telephone numbers for the contact

◆ GetUnderlyingMessage()

System::SharedPtr<Aspose::Email::Mapi::MapiMessage> Aspose::Email::Mapi::MapiContact::GetUnderlyingMessage ( )

Get the MapiMessage that represent contact.

Returns
The MapiMessage object.

◆ Save() [1/6]

void Aspose::Email::Mapi::MapiContact::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::Mapi::MapiContact::Save ( System::SharedPtr< System::IO::Stream >  stream,
Aspose::Email::Mapi::ContactSaveFormat  saveFormat 
)

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

Parameters
streamA stream to save to
saveFormatA save format
Exceptions
ArgumentNullExceptionstream is null
NotSupportedExceptionstream does not support writing
NotSupportedExceptionThe specified format is not supported

◆ Save() [3/6]

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

Saves this MapiContact to the given stream using specified save options. The supported save options is VCardSaveOptions

Parameters
streamA stream to save to
saveOptionsA save options
Exceptions
ArgumentNullExceptionstream or saveOptions is null
NotSupportedExceptionstream does not support writing
ArgumentExceptionincorrect saveOptions
NotSupportedExceptionsome save option is not supported

◆ Save() [4/6]

void Aspose::Email::Mapi::MapiContact::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::Mapi::MapiContact::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
Exceptions
ArgumentExceptionfilePath is null or empty
NotSupportedExceptionthe specified format is not supported

◆ Save() [6/6]

void Aspose::Email::Mapi::MapiContact::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_ElectronicAddresses()

void Aspose::Email::Mapi::MapiContact::set_ElectronicAddresses ( System::SharedPtr< Aspose::Email::Mapi::MapiContactElectronicAddressPropertySet value)

Specify properties for up to three different e-mail addresses
and three different fax addresses

◆ set_Events()

void Aspose::Email::Mapi::MapiContact::set_Events ( System::SharedPtr< Aspose::Email::Mapi::MapiContactEventPropertySet value)

Specify events associated with a contact

◆ set_GoogleId()

void Aspose::Email::Mapi::MapiContact::set_GoogleId ( System::String  value)

Uses to specify the server URI of the contact GmailClient only

◆ set_ItemId()

void Aspose::Email::Mapi::MapiContact::set_ItemId ( System::String  value)
overridevirtual

Uses to specify the server id of the contact EWS only

Reimplemented from Aspose::Email::Mapi::MapiMessageItemBase.

◆ set_NameInfo()

void Aspose::Email::Mapi::MapiContact::set_NameInfo ( System::SharedPtr< Aspose::Email::Mapi::MapiContactNamePropertySet value)

The properties are used to specify the name of the person represented by the contact

◆ set_OtherFields()

void Aspose::Email::Mapi::MapiContact::set_OtherFields ( System::SharedPtr< Aspose::Email::Mapi::MapiContactOtherPropertySet value)

Specify other fields of conhtact.

◆ set_PersonalInfo()

void Aspose::Email::Mapi::MapiContact::set_PersonalInfo ( System::SharedPtr< Aspose::Email::Mapi::MapiContactPersonalInfoPropertySet value)

Specify other additional contact information

◆ set_Photo()

void Aspose::Email::Mapi::MapiContact::set_Photo ( System::SharedPtr< Aspose::Email::Mapi::MapiContactPhoto value)

Contains contact photoMapiContactPhoto.

◆ set_PhysicalAddresses()

void Aspose::Email::Mapi::MapiContact::set_PhysicalAddresses ( System::SharedPtr< Aspose::Email::Mapi::MapiContactPhysicalAddressPropertySet value)

Specify three physical addresses: Home Address, Work Address, and Other Address. One of the addresses can be marked as the Mailing Address

◆ set_PidTagUrlName()

void Aspose::Email::Mapi::MapiContact::set_PidTagUrlName ( System::String  value)

Uses to specify the server URI of the contact WebDav only

◆ set_ProfessionalInfo()

void Aspose::Email::Mapi::MapiContact::set_ProfessionalInfo ( System::SharedPtr< Aspose::Email::Mapi::MapiContactProfessionalPropertySet value)

Properties are used to store professional details for the person represented by the contact

◆ set_Telephones()

void Aspose::Email::Mapi::MapiContact::set_Telephones ( System::SharedPtr< Aspose::Email::Mapi::MapiContactTelephonePropertySet value)

Specify telephone numbers for the contact

◆ SetBodyContent()

void Aspose::Email::Mapi::MapiContact::SetBodyContent ( System::String  content,
Aspose::Email::Mapi::BodyContentType  contentType 
)
overridevirtual

Sets the content of the body.

It is provided for setting of the content of the body message in RTF, HTML or Plain Text formats. When setting a value, the values of PR_RTF_COMPRESSED, PR_RTF_DECOMPRESSES, PR_BODY properties are updated as well. Note, after the value in HTML format is set, BodyRtf property returns the value which is encoded within RTF.

Parameters
contentThe content.
contentTypeType of the content.
Exceptions
ArgumentNullExceptionthrows if the specified content string is null or empty.

Reimplemented from Aspose::Email::Mapi::MapiMessageItemBase.

Friends And Related Function Documentation

◆ Aspose::Email::Clients::Exchange::Dav::ExchangeClient

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

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

◆ Aspose::Email::Clients::Exchange::WebService::Implementation::Contacts::Create::EwsClientContactCreate

friend class Aspose::Email::Clients::Exchange::WebService::Implementation::Contacts::Create::EwsClientContactCreate
friend

◆ Aspose::Email::Clients::Exchange::WebService::Implementation::Contacts::Update::EwsClientContactUpdate

friend class Aspose::Email::Clients::Exchange::WebService::Implementation::Contacts::Update::EwsClientContactUpdate
friend

◆ Aspose::Email::Mapi::MapiMessage

friend class Aspose::Email::Mapi::MapiMessage
friend

◆ Aspose::Email::PersonalInfo::Contact

◆ Aspose::Email::Tools::ContactConverter

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

Member Data Documentation

◆ ContactClass

const System::String Aspose::Email::Mapi::MapiContact::ContactClass
static

Represents message class.