The TMsgAttachments object represents the MAPI Attachment table.
Contains one or more TMAPIAttachment objects.
| Unit: | MAPIMessages.pas |
| Type: | Class |
| Inherited from: | TMAPITable |
Properties
| Name | Access | Type | Description |
| Parent | RO | TMAPIMessage | Allows access to parent message. |
Properties inherited from TMAPITable
| Name | Access | Type | Description |
| Count | RO | Integer | The Count property returns the total number of rows in the table. |
| Item | RO | TMAPITableFields | The Item property returns a single Row object from the IMAPITable. |
| BatchLoad | RW | word | Specifies the maximum number of rows requested from IMAPITable to internal cache. Default value is 20. |
| FieldDefs | RW | TCardinalDynArray | Defines the particular properties and order of properties (PropTag) to appear as columns in the table. |
| RawTable | RO | IMAPITable | The RawTable property returns an IMAPITable pointer to the MAPI table object. |
Methods
| Name | Description |
| Add | Create a new (empty) attachment. The method creates a new attachment on a message. The new attachment and any properties that are set for it, are not available until a client has called both the attachment's Update method and the message's Update method. |
| Delete | Delete a single attachment from
TMAPIMessage. A deleted attachment is not permanently deleted until the message's Update method has been called. |
Note: The TMsgAttachments includes these default
PropTags as table
rows:
PR_ATTACH_NUM
- Contains a number that uniquely identifies the attachment within its parent
message.
PR_ATTACH_METHOD - Represents the way the contents of an attachment are
accessed.
PR_DISPLAY_NAME
- Contains the display name of the attachment.
PR_ATTACH_FILENAME - Contains the 8.3 name of the
PR_ATTACH_LONG_FILENAME property.
PR_ATTACH_LONG_FILENAME - Contains the full filename and extension of the
Attachment object.
PR_ATTACH_PATHNAME - Contains the 8.3 name of the
PR_ATTACH_LONG_PATHNAME property.
PR_ATTACH_LONG_PATHNAME - Contains the fully-qualified path and file name
with extension.
PR_ATTACH_EXTENSION - Contains a file name extension that indicates the
document type of an attachment.
PR_RENDERING_POSITION - Contains an offset, in characters, to use in
rendering an attachment within the main message text.
PR_ATTACH_SIZE
- Contains the sum, in bytes, of the sizes of all properties on an attachment.
PR_RECORD_KEY
- Contains a unique binary-comparable identifier for an attachment object.
Copyright © 2012 IMIBO Privacy Statement |