Skip to main content
.NET Framework 4.6.2+

CollectionSourceBase Methods

An abstract class that serves as the base class for Collection Source classes.
Name Description
Add(Object) Adds the specified object to the Collection Source’s CollectionSourceBase.Collection.
BeginUpdateCriteria() Begins update of the Collection Source’s collection criteria. The criteria will not be applied to the collection until the update is complete.
Dispose() Releases all the resources allocated by the current Collection Source.
EndUpdateCriteria() Ends update of the Collection Source’s collection criteria and applies it.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetCount() Returns the number of objects contained in the Collection Source’s CollectionSourceBase.Collection.
GetEnumerable(Boolean) Returns a sequence (IEnumerable or IQueryable) that contains objects from the original collection.
GetEnumerable<T>(Boolean) Returns a strongly-typed sequence (IEnumerable<T> or IQueryable<T>) that contains objects from the original collection.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetTotalCriteria() For internal use.
GetType() Gets the Type of the current instance. Inherited from Object.
IsObjectFitForCollection(Object) Tries to determine whether the specified object satisfies the criteria contained in the CollectionSourceBase.Criteria dictionary.
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() Reloads the current Collection Source’s CollectionSourceBase.Collection.
Remove(Object) Removes the specified object from the Collection Source’s CollectionSourceBase.Collection.
ResetCollection(Boolean) Recreates a Collection Source’s CollectionSourceBase.Collection.
SetAllowAdd(Boolean) Sets the value that specifies whether it is possible to add objects to the Collection Source’s CollectionSourceBase.Collection or not.
SetAllowRemove(Boolean) Sets the value that specifies whether it is possible to remove objects from the Collection Source’s CollectionSourceBase.Collection or not.
SetCriteria(String, String) Adds the specified criteria expression to the CollectionSourceBase.Criteria dictionary.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also