public abstract class MapiMessageItemBase extends MapiPropertyContainer implements IMapiMessageItem, com.aspose.ms.System.IDisposable
Represents the base class for all MapiMessageItem classes and keeps common collections of mapi properties, attachments, recipients.
Modifier and Type | Field and Description |
---|---|
protected MapiAttachmentCollection |
attachments
The collection of attachments.
|
protected MapiNamedPropertyMappingStorage |
namedPropertyMappingStorage
The named property mapping storage.
|
protected MapiRecipientCollection |
recipients
The collection of recipients.
|
Modifier | Constructor and Description |
---|---|
protected |
MapiMessageItemBase()
Initializes a new instance of the
MapiMessageItemBase class. |
protected |
MapiMessageItemBase(MapiPropertyCollection properties)
Initializes a new instance of the
MapiMessageItemBase class. |
Modifier and Type | Method and Description |
---|---|
protected void |
checkIsDisposed()
Checks if the object is disposed and raised exception in this case.
|
void |
dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
MapiAttachmentCollection |
getAttachments()
Gets the attachments in the message.
|
String |
getBilling()
Contains the billing information associated with an item.
|
String |
getBody()
Gets the message text.
|
String |
getBodyHtml()
Gets the
BodyRtf of the message converted to HTML, if present, otherwise an empty string. |
String |
getBodyRtf()
Gets or sets the RTF formatted message text.
|
int |
getBodyType()
Gets the type of the body.
|
String[] |
getCategories()
Contains keywords or categories for the message object.
|
String[] |
getCompanies()
Contains the names of the companies that are associated with an item.
|
String |
getMessageClass()
Gets a case-sensitive string that identifies the sender-defined message class, such as IPM.Note.
|
String |
getMileage()
Contains the mileage information that is associated with an item.
|
MapiPropertyCollection |
getNamedProperties()
Gets the named properties of message.
|
MapiNamedPropertyMappingStorage |
getNamedPropertyMapping()
Gets the named property mapping.
|
MapiPropertyStream |
getPropertyStream()
Gets the property stream.
|
MapiRecipientCollection |
getRecipients()
Gets the recipients of the message.
|
int |
getSensitivity()
Gets the Sensitivity.
|
String |
getSubject()
Gets or sets the subject of the message.
|
String |
getSubjectPrefix()
Gets a subject prefix that typically indicates some action on a message, such as "FW: " for forwarding.
|
MapiPropertyCollection |
getSubStorages()
Gets the sub storages.
|
protected void |
initNamedPropertyMappingStorage()
Inits the named property mapping storage.
|
void |
removeProperty(long tag)
Provides correctly removing property from all collections.
|
void |
setBilling(String value)
Contains the billing information associated with an item.
|
void |
setBody(String value)
Gets the message text.
|
void |
setBodyContent(String content,
int contentType)
Sets the content of the body.
|
void |
setBodyRtf(String value)
Gets or sets the RTF formatted message text.
|
void |
setCategories(String[] value)
Contains keywords or categories for the message object.
|
void |
setCompanies(String[] value)
Contains the names of the companies that are associated with an item.
|
void |
setMessageClass(String value)
Gets a case-sensitive string that identifies the sender-defined message class, such as IPM.Note.
|
void |
setMessageFlags(long flags)
Sets the message flags.
|
void |
setMileage(String value)
Contains the mileage information that is associated with an item.
|
void |
setNamedPropertyMapping(MapiNamedPropertyMappingStorage value)
Sets the named property mapping.
|
void |
setProperty(PropertyDescriptor pd,
Object value)
Sets MAPI property.
|
void |
setRecipients(MapiRecipientCollection value)
Gets the recipients of the message.
|
void |
setSensitivity(int value)
Gets the Sensitivity.
|
protected void |
setsIMapiMessageItemMembers(String messageClass,
String body,
String subject)
Sets MessageClass,Body and Subject.
|
void |
setSubject(String value)
Gets or sets the subject of the message.
|
createMapiNode, getCodePage, getMyProperties, getProperties, getPropertyBoolean, getPropertyBytes, getPropertyDateTime, getPropertyInt32, getPropertyLong, getPropertyShort, getPropertyString, getPropertyString, isStoreUnicodeOk, setProperty, setProperty, setProperty, setProperty, tryGetPropertyData, tryGetPropertyDateTime, tryGetPropertyInt32, tryGetPropertyLong, tryGetPropertyString, tryGetPropertyString, tryGetPropertyString, tryGetPropertyString
protected MapiAttachmentCollection attachments
The collection of attachments.
protected MapiRecipientCollection recipients
The collection of recipients.
protected MapiNamedPropertyMappingStorage namedPropertyMappingStorage
The named property mapping storage.
protected MapiMessageItemBase()
Initializes a new instance of the MapiMessageItemBase
class.
protected MapiMessageItemBase(MapiPropertyCollection properties)
Initializes a new instance of the MapiMessageItemBase
class.
properties
- MapiPropertyCollectionpublic void setProperty(PropertyDescriptor pd, Object value)
Sets MAPI property.
pd
- The property descriptor.value
- The property data.public MapiAttachmentCollection getAttachments()
Gets the attachments in the message.
Value: The attachment collection.public MapiPropertyStream getPropertyStream()
Gets the property stream.
Value: The property stream.public MapiPropertyCollection getNamedProperties()
Gets the named properties of message.
Value: The collection of named properties.public MapiRecipientCollection getRecipients()
Gets the recipients of the message.
Value: The collection of recipients.public void setRecipients(MapiRecipientCollection value)
Gets the recipients of the message.
Value: The collection of recipients.public MapiPropertyCollection getSubStorages()
Gets the sub storages.
Value: The sub storages.public MapiNamedPropertyMappingStorage getNamedPropertyMapping()
Gets the named property mapping.
Value: The named property mapping.public 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.public int getBodyType()
Gets the type of the body.
Value: The type of the body.public String getBodyRtf()
Gets or sets the RTF formatted message text.
Value: The string that represents message body rtf.public void setBodyRtf(String value)
Gets or sets the RTF formatted message text.
Value: The string that represents message body rtf.public String getBodyHtml()
Gets the BodyRtf
of the message converted to HTML, if present, otherwise an empty string.
public String[] getCompanies()
Contains the names of the companies that are associated with an item.
public void setCompanies(String[] value)
Contains the names of the companies that are associated with an item.
public String[] getCategories()
Contains keywords or categories for the message object.
public void setCategories(String[] value)
Contains keywords or categories for the message object.
public String getMileage()
Contains the mileage information that is associated with an item.
public void setMileage(String value)
Contains the mileage information that is associated with an item.
public String getBilling()
Contains the billing information associated with an item.
public void setBilling(String value)
Contains the billing information associated with an item.
public int getSensitivity()
Gets the Sensitivity.
Value: The sensitivity.public void setSensitivity(int value)
Gets the Sensitivity.
Value: The sensitivity.public 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.getMessageClass
in interface IMapiMessageItem
String
object.public 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.public String getBody()
Gets the message text.
Value: The string that represents message body.getBody
in interface IMapiMessageItem
String
object.public void setBody(String value)
Gets the message text.
Value: The string that represents message body.setBody
in interface IMapiMessageItem
value
- a String
object.public String getSubject()
Gets or sets the subject of the message.
Value: The string that represents message subject.getSubject
in interface IMapiMessageItem
String
object.public void setSubject(String value)
Gets or sets the subject of the message.
Value: The string that represents message subject.setSubject
in interface IMapiMessageItem
value
- a String
object.protected void setsIMapiMessageItemMembers(String messageClass, String body, String subject)
Sets MessageClass,Body and Subject.
messageClass
- body
- subject
- public void dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
dispose
in interface com.aspose.ms.System.IDisposable
protected void checkIsDisposed()
Checks if the object is disposed and raised exception in this case.
protected void initNamedPropertyMappingStorage()
Inits the named property mapping storage.
public void setNamedPropertyMapping(MapiNamedPropertyMappingStorage value)
Sets the named property mapping.
setNamedPropertyMapping
in class MapiPropertyContainer
value
- The MapiNamedPropertyMappingStorage.public void setBodyContent(String content, int contentType)
Sets the content of the body.
content
- The content.contentType
- Type of the content.
com.aspose.ms.System.ArgumentNullException
- throws if the specified content string is null or empty.public void setMessageFlags(long flags)
Sets the message flags.
flags
- The message flags.public void removeProperty(long tag)
Provides correctly removing property from all collections.
tag
- The tag of MapiProperty.Copyright (c) 2008-2017 Aspose Pty Ltd. All Rights Reserved.