EmbeddedFileCollection

EmbeddedFileCollection class

Class representing embedded files collection.

public class EmbeddedFileCollection : ICollection<FileSpecification>

Properties

Name Description
Count { get; } Gets number of embedded files in collection.
IsSynchronized { get; } Gets a value indicating whether access to this collection is synchronized (thread safe).
Item { get; } Gets embedded file by its index. (2 indexers)
Keys { get; } Returns list of file attachment keys.
SyncRoot { get; } Gets an object that can be used to synchronize access to this collection.

Methods

Name Description
Add(FileSpecification) Adds embedded file specification into collection.
Add(string, FileSpecification) Adds file to embedded files with the specified key.
CopyTo(FileSpecification[], int) Copies array of FileSpecification object into colleciton.
Delete() Remove all embedded files from document.
Delete(string) Delete embedded file by name.
DeleteByKey(string) Deletes file from the collection by its key in the collection.
FindByName(string) Returns embedded file by its name.
GetEnumerator() Returns colleciton enumerator.

See Also