com.moyosoft.connector.ms.outlook.attachment
Class AttachmentsCollection

java.lang.Object
  |
  +--com.moyosoft.connector.ms.outlook.attachment.AttachmentsCollection

public class AttachmentsCollection
extends java.lang.Object


Constructor Summary
AttachmentsCollection(com.moyosoft.connector.com.Dispatch dispatch)
           
 
Method Summary
 OutlookAttachment add(java.io.File file)
           
 OutlookAttachment add(java.io.File file, AttachmentType type)
           
 OutlookAttachment add(java.io.File file, AttachmentType type, long position)
           
 OutlookAttachment add(java.io.File file, AttachmentType type, long position, java.lang.String displayName)
           
 OutlookAttachment add(java.io.File file, java.lang.String displayName)
           
 OutlookAttachment add(OutlookItem item)
           
 OutlookAttachment add(OutlookItem item, AttachmentType type)
           
 OutlookAttachment add(OutlookItem item, AttachmentType type, long position)
           
 OutlookAttachment add(OutlookItem item, AttachmentType type, long position, java.lang.String displayName)
           
 OutlookAttachment addFile(java.io.File pAttachement)
          Deprecated. Use the method add(File) instead.
 OutlookAttachment addFile(java.io.File pAttachement, java.lang.String pDisplayName)
          Deprecated. Use the method add(File, String) instead.
 OutlookAttachment createAttachment(java.lang.String pFilePath)
          Deprecated. Use the method add(File) instead.
 OutlookAttachment createAttachment(java.lang.String pFilePath, AttachmentType pType)
           
 void dispose()
           
 int getCount()
           
 OutlookAttachment getItem(int index)
           
 AttachmentsIterator iterator()
           
 void remove(int index)
           
 void removeAttachment(OutlookAttachment pAttachment)
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentsCollection

public AttachmentsCollection(com.moyosoft.connector.com.Dispatch dispatch)
Method Detail

size

public int size()
         throws com.moyosoft.connector.com.ComponentObjectModelException
com.moyosoft.connector.com.ComponentObjectModelException

iterator

public AttachmentsIterator iterator()
                             throws com.moyosoft.connector.com.ComponentObjectModelException
com.moyosoft.connector.com.ComponentObjectModelException

createAttachment

public OutlookAttachment createAttachment(java.lang.String pFilePath)
                                   throws com.moyosoft.connector.com.ComponentObjectModelException
Deprecated. Use the method add(File) instead.

com.moyosoft.connector.com.ComponentObjectModelException

createAttachment

public OutlookAttachment createAttachment(java.lang.String pFilePath,
                                          AttachmentType pType)
                                   throws com.moyosoft.connector.com.ComponentObjectModelException
com.moyosoft.connector.com.ComponentObjectModelException

removeAttachment

public void removeAttachment(OutlookAttachment pAttachment)
                      throws com.moyosoft.connector.com.ComponentObjectModelException
com.moyosoft.connector.com.ComponentObjectModelException

addFile

public OutlookAttachment addFile(java.io.File pAttachement,
                                 java.lang.String pDisplayName)
                          throws com.moyosoft.connector.com.ComponentObjectModelException
Deprecated. Use the method add(File, String) instead.

com.moyosoft.connector.com.ComponentObjectModelException

addFile

public OutlookAttachment addFile(java.io.File pAttachement)
                          throws com.moyosoft.connector.com.ComponentObjectModelException
Deprecated. Use the method add(File) instead.

com.moyosoft.connector.com.ComponentObjectModelException

getCount

public int getCount()

getItem

public OutlookAttachment getItem(int index)

add

public OutlookAttachment add(java.io.File file)

add

public OutlookAttachment add(java.io.File file,
                             java.lang.String displayName)

add

public OutlookAttachment add(OutlookItem item)

add

public OutlookAttachment add(java.io.File file,
                             AttachmentType type)

add

public OutlookAttachment add(OutlookItem item,
                             AttachmentType type)

add

public OutlookAttachment add(java.io.File file,
                             AttachmentType type,
                             long position)

add

public OutlookAttachment add(OutlookItem item,
                             AttachmentType type,
                             long position)

add

public OutlookAttachment add(java.io.File file,
                             AttachmentType type,
                             long position,
                             java.lang.String displayName)

add

public OutlookAttachment add(OutlookItem item,
                             AttachmentType type,
                             long position,
                             java.lang.String displayName)

remove

public void remove(int index)

dispose

public void dispose()