Class Collection
Collection class
Represents class for Collection(12.3.5 Collections).
public class Collection : EmbeddedFileCollection
Constructors
Name | Description |
---|
Collection() | Initializes new Collection object. |
Properties
Name | Description |
---|
Count { get; } | Gets number of embedded files in collection. |
DefaultEntry { get; } | Default embedded file name. |
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. |
Schema { get; } | Gets a “Schema” of a document collection. |
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. |
GetSortedCollection() | Gets a collection of files sorted according to the specification. |
See Also