←Select platform

DocumentAttachments Class

Summary

Represents a collection of DocumentAttachment objects.

Syntax
C#
VB
C++
[CollectionDataContractAttribute()] 
public class DocumentAttachments : LeadCollection<DocumentAttachment> 
<CollectionDataContractAttribute()>  
Public Class DocumentAttachments 
   Inherits LeadCollection(Of DocumentAttachment) 
public: 
   [CollectionDataContractAttribute] 
   ref class DocumentAttachments : LeadCollection<DocumentAttachment^> 

Remarks

DocumentAttachments manages the attachments of a document. Access it through the Attachments collection of LEADDocument.

DocumentAttachments derives from LeadCollection<T>, and thus can implement System.Collections.ObjectModel.Collection. Use any of the collection methods to add, remove, insert, get, set, and iterate through the attachments.

DocumentAttachments contains a collection of DocumentAttachment objects, each containing the data for a single attachment in the document. The embedded attachments of a document can be read and populated when setting the LoadDocumentOptions.LoadAttachmentsMode property to DocumentLoadAttachmentsMode.AsAttachments during the loading of this document.

DocumentAttachments can also be manually populated by an application program to add or remove attachments to a document.

Refer to Document Attachments for more information.

Example

For an example, refer to DocumentAttachment or DocumentAttachment.DocumentId.

Requirements

Target Platforms

Help Version 21.0.2020.12.8
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document Assembly