com.moyosoft.connector.ms.outlook.attachment
Class OutlookAttachment
java.lang.Object
|
+--com.moyosoft.connector.ms.outlook.attachment.OutlookAttachment
- public class OutlookAttachment
- extends java.lang.Object
Represents an attachment of an Outlook item.
To create a new attachment to an e-mail, use the method AttachmentsCollection.add(File).
For example:
OutlookMail mail = ...;
mail.getAttachments().add(new File("test.txt"));
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OutlookAttachment
public OutlookAttachment(com.moyosoft.connector.com.Dispatch dispatch)
getDispatch
public com.moyosoft.connector.com.Dispatch getDispatch()
getDisplayName
public java.lang.String getDisplayName()
setDisplayName
public void setDisplayName(java.lang.String value)
getFileName
public java.lang.String getFileName()
getIndex
public int getIndex()
getPathName
public java.lang.String getPathName()
getPosition
public int getPosition()
setPosition
public void setPosition(int value)
getType
public AttachmentType getType()
delete
public void delete()
saveAsFile
public void saveAsFile(java.io.File file)
dispose
public void dispose()
getContentId
public java.lang.String getContentId()
- Returns the content identification header of a MIME message attachment. Embedded HTML images use this value to refer the attachment in the "img" tag.
setHidden
public void setHidden(boolean hidden)
getPropertyAccessor
public PropertyAccessor getPropertyAccessor()
- Returns the PropertyAccessor object for this item. The PropertyAccessor handles direct access to this item's properties.
Only Outlook 2007 or later supports the PropertyAccessor. With older Outlook versions, this method returns null.
This method is only available in the Professional edition of Java Outlook Connector.