The Type property determines the attachment type.
On creating a new attachment, depending on its type, values of various attributes must be set.The NAME, TIMESTAMP, USER_ID attributes are set for all attachments.Specific attributes that are set depending on attachment type:
CubeAttachmentType.Value. In the ATTACHMENT attribute set the stream linked with the saved file.The FILE_NAME and FILE_SIZE attributes can be set.
CubeAttachmentType.Document. Additional integer attribute that has the link with repository objects attribute must be created in the dictionary.Key of repository object that is a document is specified as the attribute value.The FILE_NAME and FILE_SIZE attributes can be set.
CubeAttachmentType.URL. Saved link is set in the URL attribute.
The example of use is given in description of the ICubeAttachmentManager.EditAttachments method.
See also: