Collection

Collection class

Represents class for Collection(12.3.5 Collections).

The Collection type exposes the following members:

Constructors

NameDescription
Collection()Initializes new Collection object.

Properties

NameDescription
is_synchronizedGets a value indicating whether access to this collection is synchronized (thread safe).
sync_rootGets an object that can be used to synchronize access to this collection.
keysReturns list of file attachment keys.
default_entryDefault embedded file name.

Indexer

NameDescription
[index]Gets embedded file by its index.

Methods

NameDescription
delete(name)Deletes file from the collection by its key in the collection.
delete()Deletes file from the collection by its key in the collection.
add(key, file)Adds file to embedded files with the specified key.
delete_by_key(key)Deletes file from the collection by its key in the collection.
find_by_name(name)Returns embedded file by its name.

See Also