Aspose::Email::Mapi::MapiContactPhoto Class Referencefinal

Contains data and type of contact's photo. More...

Inherits Aspose::Email::PersonalInfo::ContactPhoto.

Public Member Functions

 MapiContactPhoto (System::ArrayPtr< uint8_t > data, MapiContactPhotoImageFormat photoImageFormat)
 Initializes a new instance of the MapiContactPhoto class More...
 
void SetProperties (System::SharedPtr< MapiMessage > msg)
 Sets the message properties. More...
 
void ToVCard (System::SharedPtr< Aspose::Email::PersonalInfo::VCard::VCardHeaderList > vCardProperties)
 Converts this MapiContactPhoto into vCard properties and adds them to the specified. VCardHeaderList More...
 
- Public Member Functions inherited from Aspose::Email::PersonalInfo::ContactPhoto
System::SharedPtr< ObjectIdentifierget_Id () const
 Gets object identification information More...
 
Aspose::Email::Mapi::MapiContactPhotoImageFormat get_PhotoImageFormat () const
 Gets a photo type. More...
 
void set_PhotoImageFormat (Aspose::Email::Mapi::MapiContactPhotoImageFormat value)
 Gets a photo type. More...
 
System::ArrayPtr< uint8_t > get_Data () const
 Gets an image data. More...
 
void set_Data (System::ArrayPtr< uint8_t > value)
 Gets an image data. More...
 
 ContactPhoto ()
 Initializes a new instance of the ContactPhoto class. More...
 
 ContactPhoto (System::ArrayPtr< uint8_t > data, Aspose::Email::Mapi::MapiContactPhotoImageFormat photoImageFormat)
 Initializes a new instance of the ContactPhoto class More...
 

Static Public Member Functions

static System::SharedPtr< MapiContactPhotoFromMapiMessage (System::SharedPtr< MapiMessage > msg)
 Gets MapiContactPhoto from MapiMessage. More...
 
static System::SharedPtr< MapiContactPhotoFromVCardPhoto (System::SharedPtr< Aspose::Email::PersonalInfo::VCard::VCardPhoto > photo)
 Gets MapiContactPhoto from VCardPhoto. More...
 
static MapiContactPhotoImageFormat MediaTypeToMapiContactPhotoType (System::String mediaType)
 
static System::String MapiContactPhotoTypeToMediaType (MapiContactPhotoImageFormat imageFormat)
 
static MapiContactPhotoImageFormat VCardToMapiContactPhotoType (Aspose::Email::PersonalInfo::VCard::VCardPhotoType vcardType)
 
static Aspose::Email::PersonalInfo::VCard::VCardPhotoType MapiContactToVCardPhotoType (MapiContactPhotoImageFormat mapiContPhotoImageFormat)
 

Friends

class Aspose::Email::Clients::Exchange::WebService::ContactEwsConverter
 
class Aspose::Email::Tools::ContactConverter
 
class Aspose::Email::Clients::Exchange::WebService::Implementation::Contacts::Create::EwsClientContactCreate
 
class Aspose::Email::Clients::Exchange::WebService::Implementation::Contacts::Update::EwsClientContactUpdate
 
class Aspose::Email::Mapi::MapiContact
 

Additional Inherited Members

- Public Attributes inherited from Aspose::Email::PersonalInfo::ContactPhoto
System::ArrayPtr< uint8_t > data
 <remark> More...
 
Aspose::Email::Mapi::MapiContactPhotoImageFormat photoImageFormat
 <remark> More...
 

Detailed Description

Contains data and type of contact's photo.

Constructor & Destructor Documentation

◆ MapiContactPhoto()

Aspose::Email::Mapi::MapiContactPhoto::MapiContactPhoto ( System::ArrayPtr< uint8_t >  data,
MapiContactPhotoImageFormat  photoImageFormat 
)

Initializes a new instance of the MapiContactPhoto class

Parameters
dataImage data of photo.
photoImageFormatImage format of photo MapiContactPhotoImageFormat.

Member Function Documentation

◆ FromMapiMessage()

static System::SharedPtr<MapiContactPhoto> Aspose::Email::Mapi::MapiContactPhoto::FromMapiMessage ( System::SharedPtr< MapiMessage msg)
static

Gets MapiContactPhoto from MapiMessage.

Parameters
msgMapiMessage.MapiMessage
Returns

◆ FromVCardPhoto()

static System::SharedPtr<MapiContactPhoto> Aspose::Email::Mapi::MapiContactPhoto::FromVCardPhoto ( System::SharedPtr< Aspose::Email::PersonalInfo::VCard::VCardPhoto photo)
static

Gets MapiContactPhoto from VCardPhoto.

Parameters
photoVCardPhoto.VCardPhoto
Returns

◆ MapiContactPhotoTypeToMediaType()

static System::String Aspose::Email::Mapi::MapiContactPhoto::MapiContactPhotoTypeToMediaType ( MapiContactPhotoImageFormat  imageFormat)
static

◆ MapiContactToVCardPhotoType()

static Aspose::Email::PersonalInfo::VCard::VCardPhotoType Aspose::Email::Mapi::MapiContactPhoto::MapiContactToVCardPhotoType ( MapiContactPhotoImageFormat  mapiContPhotoImageFormat)
static

◆ MediaTypeToMapiContactPhotoType()

static MapiContactPhotoImageFormat Aspose::Email::Mapi::MapiContactPhoto::MediaTypeToMapiContactPhotoType ( System::String  mediaType)
static

◆ SetProperties()

void Aspose::Email::Mapi::MapiContactPhoto::SetProperties ( System::SharedPtr< MapiMessage msg)

Sets the message properties.

Parameters
msgThe MapiMessage.

◆ ToVCard()

void Aspose::Email::Mapi::MapiContactPhoto::ToVCard ( System::SharedPtr< Aspose::Email::PersonalInfo::VCard::VCardHeaderList >  vCardProperties)

Converts this MapiContactPhoto into vCard properties and adds them to the specified. VCardHeaderList

Parameters
vCardPropertiesA VCardHeaderList

◆ VCardToMapiContactPhotoType()

static MapiContactPhotoImageFormat Aspose::Email::Mapi::MapiContactPhoto::VCardToMapiContactPhotoType ( Aspose::Email::PersonalInfo::VCard::VCardPhotoType  vcardType)
static

Friends And Related Function Documentation

◆ 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::MapiContact

friend class Aspose::Email::Mapi::MapiContact
friend

◆ Aspose::Email::Tools::ContactConverter

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