Ejemplo n.º 1
0
        private void UpdateAttachment(PSTFile file, AttachmentObject attachment, int rowIndex)
        {
            TableContextHelper.CopyProperties(attachment.PC, this, rowIndex);

            this.SetInt32Property(rowIndex, PropertyID.PidTagLtpRowId, (int)attachment.SubnodeID.Value);
            // UNDOCUMENTED - Outlook uses dwUnique for PidTagLtpRowVer
            this.SetInt32Property(rowIndex, PropertyID.PidTagLtpRowVer, (int)file.Header.AllocateNextUniqueID());
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Properties that were removed from the message must be explicitly removed from the TC
        /// </summary>
        public void UpdateMessage(MessageObject message, TableContext contentsTable, int rowIndex)
        {
            TableContextHelper.CopyProperties(message.PC, contentsTable, rowIndex);
            // Note: Outlook 2003 simply iterates over all of the table columns:

            // Outlook 2003 Content Table Template fields:
            contentsTable.SetInt32Property(rowIndex, PropertyID.PidTagLtpRowId, (int)message.NodeID.Value);
            // UNDOCUMENTED - Outlook uses dwUnique for PidTagLtpRowVer
            contentsTable.SetInt32Property(rowIndex, PropertyID.PidTagLtpRowVer, (int)File.Header.AllocateNextUniqueID());
        }