IAttachment Interface
Description
Represents a single file or Internet address attached to a field object.
Public Methods
Public Method LoadDownloads an attachment file to a client machine.
Public Method LockObjectLocks the object. Returns True if the object has been changed on the server.
Public Method PostPosts all changed values into database.
Public Method RefreshReads saved values, overwriting values in memory.
Public Method RenameRenames the attachment on the server. The attachment must be uploaded before calling this method.
Public Method SaveUploads a file to the server.
Public Method UndoUndoes changes to field values that have not been posted.
Public Method UnLockObjectUnlocks the object.
Public Properties
Public Property AttachmentStorageDeprecated. The ExtendedStorage object of this attachment. Applies only to file attachments.
Public Property AutoPostIf true, the database is updated immediately when the field value changes.
Public Property DataIf the attachment is a file, an array of bytes. If a reference to file, the path or URL.
Public Property DescriptionThe attachment description.
Public Property DirectLinkThe link or the attachment file name on the server machine.
Public Property FieldThe value of the specified field.
Public Property FileNameIf a file, the file location. If a virtual file, the location for the attachment before it is uploaded to the server. If a URL, the link address.
Public Property FileSizeObsolete.Use IAttachment3 FileSizeEx instead. The attachment file size in bytes.
Public Property IDThe item ID.
Public Property IsLockedChecks if object is locked for editing.
Public Property LastModifiedThe last modified time.
Public Property ModifiedChecks if the item has been modified since last refresh or post operation. If true, the field properties on the server side are not up to date.
Public Property NameThe attachment name.
Public Property ServerFileNameThe path to the attachment on the server machine.
Public Property TypeThe attachment type. Either File or URL.
Public Property VirtualChecks if this is a virtual item, that is, an item that does not have a corresponding database record.
See Also