MapiContact

Inheritance: java.lang.Object, com.aspose.email.MapiPropertyContainer, com.aspose.email.MapiMessageItemBase

public final class MapiContact extends MapiMessageItemBase

Represents outlook contact information

Constructors

Constructor Description
MapiContact() Initializes a new instance of the MapiContact class
MapiContact(String displayName, String electonicAddress) Initializes a new instance of the MapiContact class.
MapiContact(String displayName, String electonicAddress, String companyName) Initializes a new instance of the MapiContact class.
MapiContact(String displayName, String electonicAddress, String companyName, String primaryTelephoneNumber) Initializes a new instance of the MapiContact class.

Methods

Method Description
close()
createMapiNode(String key) Creates the mapi node.
dispose() Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
equals(Object arg0)
fromVCard(InputStream stream) Reads MapiContact from the specified stream containing vCard.
fromVCard(InputStream stream, Charset encoding) Reads MapiContact from the specified stream containing vCard.
fromVCard(String filePath) Reads MapiContact from the specified vCard file The supported vCard versions are 2.1 and 3.0
fromVCard(String filePath, Charset encoding) Reads MapiContact from the specified vCard file The supported vCard versions are 2.1 and 3.0
getAttachments() Gets the attachments in the message.
getBilling() Contains the billing information associated with an item.
getBody() Gets the message text.
getBodyHtml() Gets the BodyRtf (#getBodyRtf.getBodyRtf/#setBodyRtf(String).setBodyRtf(String)) of the message converted to HTML, if present, otherwise an empty string.
getBodyRtf() Gets or sets the RTF formatted message text.
getBodyType() Gets the type of the body.
getCategories() Contains keywords or categories for the message object.
getClass()
getCodePage() Gets the code page.
getCompanies() Contains the names of the companies that are associated with an item.
getElectronicAddresses() Specify properties for up to three different e-mail addresses and three different fax addresses
getEvents() Specify events associated with a contact
getItemId() Uses to specify the server id of the contact EWS only
getMessageClass() Gets a case-sensitive string that identifies the sender-defined message class, such as IPM.Note.
getMileage() Contains the mileage information that is associated with an item.
getNameInfo() The properties are used to specify the name of the person represented by the contact
getNamedProperties() Gets the named properties of message.
getNamedPropertyMapping() Gets the named property mapping.
getOtherFields() Specify other fields of conhtact.
getPersonalInfo() Specify other additional contact information
getPhoto() Contains contact photoMapiContactPhoto.
getPhysicalAddresses() Specify three physical addresses: Home Address, Work Address, and Other Address.
getProfessionalInfo() Properties are used to store professional details for the person represented by the contact
getProperties() Gets the collection of properties.
getProperty(PropertyDescriptor pd) Gets MAPI property by property descriptor.
getPropertyBoolean(long tag) Gets the value of the property specified by tag as Boolean type.
getPropertyBytes(long tag) Gets the string value of the property specified by tag.
getPropertyDateTime(long key) Gets the value of the property specified by tag as DateTime type.
getPropertyInt32(long tag) Gets the int32 value of the property specified by tag.
getPropertyLong(long tag) Gets the value of the property specified by tag as Long (int64) type.
getPropertyShort(long tag) Gets the value of the property specified by tag as Short type.
getPropertyStream() Gets the property stream.
getPropertyString(long tag) Gets the string value of the property specified by tag.
getPropertyString(long tag, int codepage) Gets the string value of the property specified by tag.
getRecipients() Gets the recipients of the message.
getSensitivity() Gets the Sensitivity.
getSubStorages() Gets the sub storages.
getSubject() Gets or sets the subject of the message.
getSubjectPrefix() Gets a subject prefix that typically indicates some action on a message, such as “FW: " for forwarding.
getTelephones() Specify telephone numbers for the contact
getUnderlyingMessage() Get the MapiMessage that represent contact.
hashCode()
isStoreUnicodeOk() Determines if string properties are Unicode encoded or not.
notify()
notifyAll()
removeProperty(long tag) Provides correctly removing property from all collections.
save(OutputStream stream) Saves this MapiContact into the given stream with vCard format.
save(OutputStream stream, ContactSaveOptions saveOptions) Saves this MapiContact to the given stream using specified save options.
save(OutputStream stream, int saveFormat) Saves this MapiContact to the given stream with a format using the default options.
save(String filePath) Saves this MapiContact to the vCard file with a default options.
save(String filePath, ContactSaveOptions saveOptions) Saves this MapiContact into file using specified save options.
save(String filePath, int saveFormat) Saves this MapiContact to the specified file with a format using the default options.
setBilling(String value) Contains the billing information associated with an item.
setBody(String value) Gets the message text.
setBodyContent(String content, int contentType) Sets the content of the body.
setBodyContent(String content, int contentType, boolean compression) Sets the content of the body.
setBodyRtf(String value) Gets or sets the RTF formatted message text.
setBodyRtf(String value, boolean compression) Gets or sets the RTF formatted message text.
setCategories(String[] value) Contains keywords or categories for the message object.
setCompanies(String[] value) Contains the names of the companies that are associated with an item.
setElectronicAddresses(MapiContactElectronicAddressPropertySet value) Specify properties for up to three different e-mail addresses and three different fax addresses
setEvents(MapiContactEventPropertySet value) Specify events associated with a contact
setMessageClass(String value) Gets a case-sensitive string that identifies the sender-defined message class, such as IPM.Note.
setMessageFlags(long flags) Sets the message flags.
setMileage(String value) Contains the mileage information that is associated with an item.
setNameInfo(MapiContactNamePropertySet value) The properties are used to specify the name of the person represented by the contact
setNamedPropertyMapping(MapiNamedPropertyMappingStorage value) Sets the named property mapping.
setOtherFields(MapiContactOtherPropertySet value) Specify other fields of conhtact.
setPersonalInfo(MapiContactPersonalInfoPropertySet value) Specify other additional contact information
setPhoto(MapiContactPhoto value) Contains contact photoMapiContactPhoto.
setPhysicalAddresses(MapiContactPhysicalAddressPropertySet value) Specify three physical addresses: Home Address, Work Address, and Other Address.
setProfessionalInfo(MapiContactProfessionalPropertySet value) Properties are used to store professional details for the person represented by the contact
setProperty(MapiProperty value) Sets the property.
setProperty(PropertyDescriptor pd, Object value) Sets MAPI property.
setRecipients(MapiRecipientCollection value) Gets the recipients of the message.
setSensitivity(int value) Gets the Sensitivity.
setSubject(String value) Gets or sets the subject of the message.
setTelephones(MapiContactTelephonePropertySet value) Specify telephone numbers for the contact
toString()
tryGetPropertyData(long tag) Try to get the property data with specified tag key.
tryGetPropertyDateTime(long tag, Date[] value) Gets the value of the specified property as DateTime type.
tryGetPropertyInt32(long tag, int[] value) Gets the value of the specified property as Int32 type.
tryGetPropertyLong(long tag, long[] value) Gets the value of the specified property as Long type.
tryGetPropertyString(long tag) Try to get a property data as string with specified tag.
tryGetPropertyString(long tag, int codepage) Try to get a property data as string with specified tag and code page.
tryGetPropertyString(long tag, String[] value) Gets the value of the specified property as String type.
tryGetPropertyString(long tag, String[] value, int codepage) Gets the value of the specified property as String type.
wait()
wait(long arg0)
wait(long arg0, int arg1)

MapiContact()

public MapiContact()

Initializes a new instance of the MapiContact class

MapiContact(String displayName, String electonicAddress)

public MapiContact(String displayName, String electonicAddress)

Initializes a new instance of the MapiContact class.

Parameters:

Parameter Type Description
displayName java.lang.String The display name.
electonicAddress java.lang.String The electonic address.

MapiContact(String displayName, String electonicAddress, String companyName)

public MapiContact(String displayName, String electonicAddress, String companyName)

Initializes a new instance of the MapiContact class.

Parameters:

Parameter Type Description
displayName java.lang.String The display name.
electonicAddress java.lang.String The electonic address.
companyName java.lang.String Name of the company.

MapiContact(String displayName, String electonicAddress, String companyName, String primaryTelephoneNumber)

public MapiContact(String displayName, String electonicAddress, String companyName, String primaryTelephoneNumber)

Initializes a new instance of the MapiContact class.

Parameters:

Parameter Type Description
displayName java.lang.String The display name.
electonicAddress java.lang.String The electonic address.
companyName java.lang.String Name of the company.
primaryTelephoneNumber java.lang.String The telephone number.

close()

public void close()

createMapiNode(String key)

public IMapiNode createMapiNode(String key)

Creates the mapi node.

Parameters:

Parameter Type Description
key java.lang.String The node key.

Returns: com.aspose.email.IMapiNode - The IMapiNode interface.

dispose()

public void dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

Parameter Type Description
arg0 java.lang.Object

Returns: boolean

fromVCard(InputStream stream)

public static MapiContact fromVCard(InputStream stream)

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

Parameters:

Parameter Type Description
stream java.io.InputStream A stream to read from

Returns: MapiContact - A read MapiContact

fromVCard(InputStream stream, Charset encoding)

public static MapiContact fromVCard(InputStream stream, Charset encoding)

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

Parameters:

Parameter Type Description
stream java.io.InputStream A stream to read from
encoding java.nio.charset.Charset Stream data encoding

Returns: MapiContact - A read MapiContact

fromVCard(String filePath)

public static MapiContact fromVCard(String filePath)

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

Parameters:

Parameter Type Description
filePath java.lang.String A file name to read from

Returns: MapiContact - A read MapiContact

fromVCard(String filePath, Charset encoding)

public static MapiContact fromVCard(String filePath, Charset encoding)

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

Parameters:

Parameter Type Description
filePath java.lang.String A file name to read from
encoding java.nio.charset.Charset File data encoding

Returns: MapiContact - A read MapiContact

getAttachments()

public final MapiAttachmentCollection getAttachments()

Gets the attachments in the message.

Value: The attachment collection.

Returns: MapiAttachmentCollection

getBilling()

public final String getBilling()

Contains the billing information associated with an item.

Returns: java.lang.String

getBody()

public String getBody()

Gets the message text.

Value: The string that represents message body.

Returns: java.lang.String

getBodyHtml()

public final String getBodyHtml()

Gets the BodyRtf (#getBodyRtf.getBodyRtf/#setBodyRtf(String).setBodyRtf(String)) of the message converted to HTML, if present, otherwise an empty string.

Returns: java.lang.String

getBodyRtf()

public final String getBodyRtf()

Gets or sets the RTF formatted message text.

Value: The string that represents message body rtf.


When setting a value, the values of PR_RTF_COMPRESSED, PR_RTF_DECOMPRESSES, PR_BODY properties are updated. A string value being set must have RTF format. Thus, if it is necessary to set a value in HTML format, the value must be first to encoded within RTF, according to RTF Extensions Specification. To set the content of the body message in HTML or Plain Text formats quickly, please, use SetBodyContent method. When setting a null value or empty string, the values of BodyRtf and Body properties are set null.

Returns: java.lang.String

getBodyType()

public final int getBodyType()

Gets the type of the body.

Value: The type of the body.

Returns: int

getCategories()

public final String[] getCategories()

Contains keywords or categories for the message object.

Returns: java.lang.String[]

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCodePage()

public int getCodePage()

Gets the code page.

Value: The code page.

Returns: int

getCompanies()

public final String[] getCompanies()

Contains the names of the companies that are associated with an item.

Returns: java.lang.String[]

getElectronicAddresses()

public final MapiContactElectronicAddressPropertySet getElectronicAddresses()

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

Returns: MapiContactElectronicAddressPropertySet

getEvents()

public final MapiContactEventPropertySet getEvents()

Specify events associated with a contact

Returns: MapiContactEventPropertySet

getItemId()

public final String getItemId()

Uses to specify the server id of the contact EWS only

Returns: java.lang.String

getMessageClass()

public final String getMessageClass()

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.

Value: The string that represents message class.

Returns: java.lang.String

getMileage()

public final String getMileage()

Contains the mileage information that is associated with an item.

Returns: java.lang.String

getNameInfo()

public final MapiContactNamePropertySet getNameInfo()

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

Returns: MapiContactNamePropertySet

getNamedProperties()

public final MapiPropertyCollection getNamedProperties()

Gets the named properties of message.

Value: The collection of named properties.

Returns: MapiPropertyCollection

getNamedPropertyMapping()

public final MapiNamedPropertyMappingStorage getNamedPropertyMapping()

Gets the named property mapping.

Value: The named property mapping.

Returns: MapiNamedPropertyMappingStorage

getOtherFields()

public final MapiContactOtherPropertySet getOtherFields()

Specify other fields of conhtact.

Returns: MapiContactOtherPropertySet

getPersonalInfo()

public final MapiContactPersonalInfoPropertySet getPersonalInfo()

Specify other additional contact information

Returns: MapiContactPersonalInfoPropertySet

getPhoto()

public final MapiContactPhoto getPhoto()

Contains contact photoMapiContactPhoto.

Returns: MapiContactPhoto

getPhysicalAddresses()

public final MapiContactPhysicalAddressPropertySet getPhysicalAddresses()

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

Returns: MapiContactPhysicalAddressPropertySet

getProfessionalInfo()

public final MapiContactProfessionalPropertySet getProfessionalInfo()

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

Returns: MapiContactProfessionalPropertySet

getProperties()

public MapiPropertyCollection getProperties()

Gets the collection of properties.

Value: The properties.

Returns: MapiPropertyCollection

getProperty(PropertyDescriptor pd)

public MapiProperty getProperty(PropertyDescriptor pd)

Gets MAPI property by property descriptor.

Parameters:

Parameter Type Description
pd PropertyDescriptor Property descriptor for looked property

Returns: MapiProperty - Mapi property if it is found, otherwise null.

getPropertyBoolean(long tag)

public final Boolean getPropertyBoolean(long tag)

Gets the value of the property specified by tag as Boolean type.

Parameters:

Parameter Type Description
tag long The MAPI property tag.

Returns: java.lang.Boolean - The value of the property. If the property does not exist, returns NULL; otherwise, returns the value.

getPropertyBytes(long tag)

public final byte[] getPropertyBytes(long tag)

Gets the string value of the property specified by tag.

Parameters:

Parameter Type Description
tag long The MAPI property tag.

Returns: byte[] - The value of the property. If the property does not exist, returns NULL; otherwise, returns the value.

getPropertyDateTime(long key)

public final Date getPropertyDateTime(long key)

Gets the value of the property specified by tag as DateTime type.

Parameters:

Parameter Type Description
key long The MAPI property tag.

Returns: java.util.Date - The value of the property. If the property does not exist, returns NULL; otherwise, returns the value.

getPropertyInt32(long tag)

public final Integer getPropertyInt32(long tag)

Gets the int32 value of the property specified by tag.

Parameters:

Parameter Type Description
tag long The MAPI property tag.

Returns: java.lang.Integer - The value of the property. If the property does not exist, returns NULL; otherwise, returns the value.

getPropertyLong(long tag)

public final Long getPropertyLong(long tag)

Gets the value of the property specified by tag as Long (int64) type.

Parameters:

Parameter Type Description
tag long The MAPI property tag.

Returns: java.lang.Long - The value of the property. If the property does not exist, returns NULL; otherwise, returns the value.

getPropertyShort(long tag)

public final Short getPropertyShort(long tag)

Gets the value of the property specified by tag as Short type.

Parameters:

Parameter Type Description
tag long The MAPI property tag.

Returns: java.lang.Short - The value of the property. If the property does not exist, returns NULL; otherwise, returns the value.

getPropertyStream()

public final MapiPropertyStream getPropertyStream()

Gets the property stream.

Value: The property stream.

Returns: MapiPropertyStream

getPropertyString(long tag)

public final String getPropertyString(long tag)

Gets the string value of the property specified by tag.

Parameters:

Parameter Type Description
tag long The MAPI property tag.

Returns: java.lang.String - The value of the property. If the property does not exist, returns NULL; otherwise, returns the value.

getPropertyString(long tag, int codepage)

public final String getPropertyString(long tag, int codepage)

Gets the string value of the property specified by tag.

Parameters:

Parameter Type Description
tag long The MAPI property tag.
codepage int The specified codepage used to get string value.

Returns: java.lang.String - The value of the property. If the property does not exist, returns NULL; otherwise, returns the value.

getRecipients()

public final MapiRecipientCollection getRecipients()

Gets the recipients of the message.

Value: The collection of recipients.

Returns: MapiRecipientCollection

getSensitivity()

public final int getSensitivity()

Gets the Sensitivity.

Value: The sensitivity.

Returns: int

getSubStorages()

public final MapiPropertyCollection getSubStorages()

Gets the sub storages.

Value: The sub storages.

Returns: MapiPropertyCollection

getSubject()

public final String getSubject()

Gets or sets the subject of the message.

Value: The string that represents message subject.


When setting a value, the values of SubjectPrefix(PR_SUBJECT_PREFIX) and NormalizedSubject(PR_NORMALIZED_SUBJECT) properties are updated as well. If Subject has no prefix, the value of SubjectPrefix property is set null. When setting a null value or empty string, the values of Subject, SubjectPrefix, NormalizedSubject properties are set null.

Returns: java.lang.String

getSubjectPrefix()

public final String getSubjectPrefix()

Gets a subject prefix that typically indicates some action on a message, such as “FW: " for forwarding.

Value: The string that represents subject prefix.

Returns: java.lang.String

getTelephones()

public final MapiContactTelephonePropertySet getTelephones()

Specify telephone numbers for the contact

Returns: MapiContactTelephonePropertySet

getUnderlyingMessage()

public final MapiMessage getUnderlyingMessage()

Get the MapiMessage that represent contact.

Returns: MapiMessage - The MapiMessage object.

hashCode()

public native int hashCode()

Returns: int

isStoreUnicodeOk()

public final boolean isStoreUnicodeOk()

Determines if string properties are Unicode encoded or not.

Returns: boolean - True, if string properties are Unicode encoded.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

removeProperty(long tag)

public final void removeProperty(long tag)

Provides correctly removing property from all collections.

Parameters:

Parameter Type Description
tag long The tag of MapiProperty.

save(OutputStream stream)

public final void save(OutputStream stream)

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

Parameters:

Parameter Type Description
stream java.io.OutputStream A stream to save to

save(OutputStream stream, ContactSaveOptions saveOptions)

public final void save(OutputStream stream, ContactSaveOptions saveOptions)

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

Parameters:

Parameter Type Description
stream java.io.OutputStream A stream to save to
saveOptions ContactSaveOptions A save options

save(OutputStream stream, int saveFormat)

public final void save(OutputStream stream, int saveFormat)

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

Parameters:

Parameter Type Description
stream java.io.OutputStream A stream to save to
saveFormat int A save format

save(String filePath)

public final void save(String filePath)

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

Parameters:

Parameter Type Description
filePath java.lang.String A vCard file name

save(String filePath, ContactSaveOptions saveOptions)

public final void save(String filePath, ContactSaveOptions saveOptions)

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

Parameters:

Parameter Type Description
filePath java.lang.String A vCard file name
saveOptions ContactSaveOptions A save options

save(String filePath, int saveFormat)

public final void save(String filePath, int saveFormat)

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

Parameters:

Parameter Type Description
filePath java.lang.String A vCard file name
saveFormat int A save format

setBilling(String value)

public final void setBilling(String value)

Contains the billing information associated with an item.

Parameters:

Parameter Type Description
value java.lang.String

setBody(String value)

public void setBody(String value)

Gets the message text.

Value: The string that represents message body.

Parameters:

Parameter Type Description
value java.lang.String

setBodyContent(String content, int contentType)

public void setBodyContent(String content, int contentType)

Sets the content of the body.

Parameters:

Parameter Type Description
content java.lang.String The content.
contentType int Type of the content.

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

setBodyContent(String content, int contentType, boolean compression)

public void setBodyContent(String content, int contentType, boolean compression)

Sets the content of the body.

Parameters:

Parameter Type Description
content java.lang.String The content.
contentType int Type of the content.
compression boolean Specify that the content should be compressed.

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

setBodyRtf(String value)

public final void setBodyRtf(String value)

Gets or sets the RTF formatted message text.

Value: The string that represents message body rtf.


When setting a value, the values of PR_RTF_COMPRESSED, PR_RTF_DECOMPRESSES, PR_BODY properties are updated. A string value being set must have RTF format. Thus, if it is necessary to set a value in HTML format, the value must be first to encoded within RTF, according to RTF Extensions Specification. To set the content of the body message in HTML or Plain Text formats quickly, please, use SetBodyContent method. When setting a null value or empty string, the values of BodyRtf and Body properties are set null.

Parameters:

Parameter Type Description
value java.lang.String

setBodyRtf(String value, boolean compression)

public final void setBodyRtf(String value, boolean compression)

Gets or sets the RTF formatted message text.

Value: The string that represents message body rtf.


When setting a value, the values of PR_RTF_COMPRESSED, PR_RTF_DECOMPRESSES, PR_BODY properties are updated. A string value being set must have RTF format. Thus, if it is necessary to set a value in HTML format, the value must be first to encoded within RTF, according to RTF Extensions Specification. To set the content of the body message in HTML or Plain Text formats quickly, please, use SetBodyContent method. When setting a null value or empty string, the values of BodyRtf and Body properties are set null.

Parameters:

Parameter Type Description
value java.lang.String
compression boolean Specify that the content should be compressed.

setCategories(String[] value)

public final void setCategories(String[] value)

Contains keywords or categories for the message object.

Parameters:

Parameter Type Description
value java.lang.String[]

setCompanies(String[] value)

public final void setCompanies(String[] value)

Contains the names of the companies that are associated with an item.

Parameters:

Parameter Type Description
value java.lang.String[]

setElectronicAddresses(MapiContactElectronicAddressPropertySet value)

public final void setElectronicAddresses(MapiContactElectronicAddressPropertySet value)

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

Parameters:

Parameter Type Description
value MapiContactElectronicAddressPropertySet

setEvents(MapiContactEventPropertySet value)

public final void setEvents(MapiContactEventPropertySet value)

Specify events associated with a contact

Parameters:

Parameter Type Description
value MapiContactEventPropertySet

setMessageClass(String value)

public final void setMessageClass(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.

Value: The string that represents message class.

Parameters:

Parameter Type Description
value java.lang.String

setMessageFlags(long flags)

public final void setMessageFlags(long flags)

Sets the message flags.

Parameters:

Parameter Type Description
flags long The message flags.

setMileage(String value)

public final void setMileage(String value)

Contains the mileage information that is associated with an item.

Parameters:

Parameter Type Description
value java.lang.String

setNameInfo(MapiContactNamePropertySet value)

public final void setNameInfo(MapiContactNamePropertySet value)

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

Parameters:

Parameter Type Description
value MapiContactNamePropertySet

setNamedPropertyMapping(MapiNamedPropertyMappingStorage value)

public final void setNamedPropertyMapping(MapiNamedPropertyMappingStorage value)

Sets the named property mapping.

Parameters:

Parameter Type Description
value MapiNamedPropertyMappingStorage The MapiNamedPropertyMappingStorage.

setOtherFields(MapiContactOtherPropertySet value)

public final void setOtherFields(MapiContactOtherPropertySet value)

Specify other fields of conhtact.

Parameters:

Parameter Type Description
value MapiContactOtherPropertySet

setPersonalInfo(MapiContactPersonalInfoPropertySet value)

public final void setPersonalInfo(MapiContactPersonalInfoPropertySet value)

Specify other additional contact information

Parameters:

Parameter Type Description
value MapiContactPersonalInfoPropertySet

setPhoto(MapiContactPhoto value)

public final void setPhoto(MapiContactPhoto value)

Contains contact photoMapiContactPhoto.

Parameters:

Parameter Type Description
value MapiContactPhoto

setPhysicalAddresses(MapiContactPhysicalAddressPropertySet value)

public final void setPhysicalAddresses(MapiContactPhysicalAddressPropertySet value)

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

Parameters:

Parameter Type Description
value MapiContactPhysicalAddressPropertySet

setProfessionalInfo(MapiContactProfessionalPropertySet value)

public final void setProfessionalInfo(MapiContactProfessionalPropertySet value)

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

Parameters:

Parameter Type Description
value MapiContactProfessionalPropertySet

setProperty(MapiProperty value)

public void setProperty(MapiProperty value)

Sets the property.

Parameters:

Parameter Type Description
value MapiProperty The property.

setProperty(PropertyDescriptor pd, Object value)

public void setProperty(PropertyDescriptor pd, Object value)

Sets MAPI property.

Parameters:

Parameter Type Description
pd PropertyDescriptor The property descriptor.
value java.lang.Object The property data.

setRecipients(MapiRecipientCollection value)

public final void setRecipients(MapiRecipientCollection value)

Gets the recipients of the message.

Value: The collection of recipients.

Parameters:

Parameter Type Description
value MapiRecipientCollection

setSensitivity(int value)

public final void setSensitivity(int value)

Gets the Sensitivity.

Value: The sensitivity.

Parameters:

Parameter Type Description
value int

setSubject(String value)

public final void setSubject(String value)

Gets or sets the subject of the message.

Value: The string that represents message subject.


When setting a value, the values of SubjectPrefix(PR_SUBJECT_PREFIX) and NormalizedSubject(PR_NORMALIZED_SUBJECT) properties are updated as well. If Subject has no prefix, the value of SubjectPrefix property is set null. When setting a null value or empty string, the values of Subject, SubjectPrefix, NormalizedSubject properties are set null.

Parameters:

Parameter Type Description
value java.lang.String

setTelephones(MapiContactTelephonePropertySet value)

public final void setTelephones(MapiContactTelephonePropertySet value)

Specify telephone numbers for the contact

Parameters:

Parameter Type Description
value MapiContactTelephonePropertySet

toString()

public String toString()

Returns: java.lang.String

tryGetPropertyData(long tag)

public final byte[] tryGetPropertyData(long tag)

Try to get the property data with specified tag key.

Parameters:

Parameter Type Description
tag long The tag key.

Returns: byte[] - The property data.

tryGetPropertyDateTime(long tag, Date[] value)

public final boolean tryGetPropertyDateTime(long tag, Date[] value)

Gets the value of the specified property as DateTime type. A return value indicates whether the operation succeeded.

Parameters:

Parameter Type Description
tag long The MAPI property tag.
value java.util.Date[] When this method returns, contains the value of the specified property, if the property exists. This parameter is passed uninitialized.

Returns: boolean - true if s was converted successfully; otherwise, false.

tryGetPropertyInt32(long tag, int[] value)

public final boolean tryGetPropertyInt32(long tag, int[] value)

Gets the value of the specified property as Int32 type. A return value indicates whether the operation succeeded.

Parameters:

Parameter Type Description
tag long The MAPI property tag.
value int[] When this method returns, contains the value of the specified property, if the property exists. This parameter is passed uninitialized.

Returns: boolean - true if s was converted successfully; otherwise, false.

tryGetPropertyLong(long tag, long[] value)

public final boolean tryGetPropertyLong(long tag, long[] value)

Gets the value of the specified property as Long type. A return value indicates whether the operation succeeded.

Parameters:

Parameter Type Description
tag long The MAPI property tag.
value long[] When this method returns, contains the value of the specified property, if the property exists. This parameter is passed uninitialized.

Returns: boolean - true if s was converted successfully; otherwise, false.

tryGetPropertyString(long tag)

public final String tryGetPropertyString(long tag)

Try to get a property data as string with specified tag.

Parameters:

Parameter Type Description
tag long The property tag key.

Returns: java.lang.String - String that contains the contents of property data.

tryGetPropertyString(long tag, int codepage)

public final String tryGetPropertyString(long tag, int codepage)

Try to get a property data as string with specified tag and code page.

Parameters:

Parameter Type Description
tag long The property tag key.
codepage int The code page.

Returns: java.lang.String - String that contains the contents of property data.

tryGetPropertyString(long tag, String[] value)

public final boolean tryGetPropertyString(long tag, String[] value)

Gets the value of the specified property as String type. A return value indicates whether the operation succeeded.

Parameters:

Parameter Type Description
tag long The MAPI property tag.
value java.lang.String[] When this method returns, contains the value of the specified property, if the property exists. This parameter is passed uninitialized.

Returns: boolean - true if s was converted successfully; otherwise, false.

tryGetPropertyString(long tag, String[] value, int codepage)

public final boolean tryGetPropertyString(long tag, String[] value, int codepage)

Gets the value of the specified property as String type. A return value indicates whether the operation succeeded.

Parameters:

Parameter Type Description
tag long The MAPI property tag.
value java.lang.String[] When this method returns, contains the value of the specified property, if the property exists. This parameter is passed uninitialized.
codepage int The specified codepage used to get string value.

Returns: boolean - true if s was converted successfully; otherwise, false.

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

Parameter Type Description
arg0 long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

Parameter Type Description
arg0 long
arg1 int