All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

DynamicCollection Members

A proxy collection that allows you to filter and sort an original collection without its change.

Constructors

Name Description
DynamicCollection(IObjectSpace, Type) Initializes a new instance of the DynamicCollection class with specified settings.
DynamicCollection(IObjectSpace, Type, CriteriaOperator, IList<SortProperty>, Boolean) Initializes a new instance of the DynamicCollection class with specified settings.

Properties

Name Description
AllowEdit Specifies whether the collection is read-only. This property is implemented to support the IBindingList interface. Inherited from DynamicCollectionBase.
AllowNew Specifies whether new objects can be added to the collection. This property is implemented to support the IBindingList interface. Inherited from DynamicCollectionBase.
AllowRemove Specifies whether objects can be removed from the collection. This property is implemented to support the IBindingList interface. Inherited from DynamicCollectionBase.
Count Returns the count of objects in the collection. This property is implemented to support the ICollection interface. Inherited from DynamicCollectionBase.
Criteria Specifies criteria used to filter objects in the collection. Inherited from DynamicCollectionBase.
DeleteObjectOnRemove Specifies whether objects are deleted from a storage when they are removed from the collection. Inherited from DynamicCollectionBase.
DisplayableProperties For internal use. Inherited from DynamicCollectionBase.
InTransaction Specifies if the specified Criteria and Sorting parameters are applied to all objects (in the database and retrieved). Inherited from DynamicCollectionBase.
IsDisposed Specifies whether the collection has been disposed of. For internal use. Inherited from DynamicCollectionBase.
IsFixedSize Indicates whether the collection has a fixed size. This property is implemented to support the IList interface. Inherited from DynamicCollectionBase.
IsLoaded Indicates whether the collection was populated with objects. Inherited from DynamicCollectionBase.
IsReadOnly Specifies whether the collection is read-only. This property is implemented to support the IList interface. Inherited from DynamicCollectionBase.
IsSynchronized Indicates whether access to the collection is synchronized (thread safe). This property is implemented to support the ICollection interface. Inherited from DynamicCollectionBase.
Item[Int32] Gets or sets an object at the specified index. This property is implemented to support the IList interface. Inherited from DynamicCollectionBase.
ObjectSpace Returns the Object Space used to manipulate the collection's objects. Inherited from DynamicCollectionBase.
ObjectType Returns the type of objects that the Objects collection can contain. Inherited from DynamicCollectionBase.
Sorting Specifies the list of SortProperty objects that specify the sort order for the collection. Inherited from DynamicCollectionBase.
SyncRoot Gets an object that can be used to synchronize access to the collection. This property is implemented to support the ICollection interface. Inherited from DynamicCollectionBase.
TopReturnedObjectsCount Specifies the maximum number of objects that can be retrieved from the collection. Inherited from DynamicCollectionBase.

Methods

Name Description
Add(Object) Adds the specified object to the collection. This method is implemented to support the IList interface. Inherited from DynamicCollectionBase.
Clear() Removes all objects from the collection. This method is implemented to support the IList interface. Inherited from DynamicCollectionBase.
Contains(Object) Checks whether the collection contains the specified object. This method is implemented to support the IList interface. Inherited from DynamicCollectionBase.
CopyTo(Array, Int32) Copies the collection to the specified array. This method is implemented to support the ICollection interface. Inherited from DynamicCollectionBase.
Dispose() Disposes of all resources this DynamicCollectionBase object uses. This method is implemented to support the IDisposable interface. Inherited from DynamicCollectionBase.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
IndexOf(Object) Determines the index of the specified object in the collection. This method is implemented to support the IList interface. Inherited from DynamicCollectionBase.
Insert(Int32, Object) Inserts the specified object into the collection at the specified position. This method is implemented to support the IList interface. Inherited from DynamicCollectionBase.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Reload() Clears the collection. The FetchObjects event will occur on the next access to this collection. Inherited from DynamicCollectionBase.
Remove(Object) Removes the specified object from the collection. This method is implemented to support the IList interface. Inherited from DynamicCollectionBase.
RemoveAt(Int32) Removes an object from the specified index in the collection. This method is implemented to support the IList interface. Inherited from DynamicCollectionBase.
ToString() Returns a string that represents the current object. Inherited from Object.

Events

Name Description
FetchObjects Occurs when the DynamicCollection contents are accessed for the first time, when this collection is reloaded, or its Criteria and Sorting parameters are changed. Handle this event and set the FetchObjectsEventArgs.Objects argument the DynamicCollection contents.
ListChanged Occurs when the collection contents are changed. This event is implemented to support the IBindingList interface. Inherited from DynamicCollectionBase.
Loaded Occurs after the collection was populated with objects. Inherited from DynamicCollectionBase.
See Also