This documentation is archived and is not being maintained.
BaseCollection Class
Visual Studio 2010
Provides the base functionality for creating data-related collections in the System.Windows.Forms namespace.
System::Object
System::MarshalByRefObject
System.Windows.Forms::BaseCollection
System.Windows.Forms::BindingsCollection
System.Windows.Forms::DataGridViewCellCollection
System.Windows.Forms::DataGridViewColumnCollection
System.Windows.Forms::DataGridViewSelectedCellCollection
System.Windows.Forms::DataGridViewSelectedColumnCollection
System.Windows.Forms::DataGridViewSelectedRowCollection
System.Windows.Forms::GridColumnStylesCollection
System.Windows.Forms::GridTableStylesCollection
System::MarshalByRefObject
System.Windows.Forms::BaseCollection
System.Windows.Forms::BindingsCollection
System.Windows.Forms::DataGridViewCellCollection
System.Windows.Forms::DataGridViewColumnCollection
System.Windows.Forms::DataGridViewSelectedCellCollection
System.Windows.Forms::DataGridViewSelectedColumnCollection
System.Windows.Forms::DataGridViewSelectedRowCollection
System.Windows.Forms::GridColumnStylesCollection
System.Windows.Forms::GridTableStylesCollection
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The BaseCollection type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Count | Gets the total number of elements in the collection. |
![]() | IsReadOnly | Gets a value indicating whether the collection is read-only. |
![]() | IsSynchronized | Gets a value indicating whether access to the ICollection is synchronized. |
![]() | List | Gets the list of elements contained in the BaseCollection instance. |
![]() | SyncRoot | Gets an object that can be used to synchronize access to the BaseCollection. |
| Name | Description | |
|---|---|---|
![]() | CopyTo | Copies all the elements of the current one-dimensional Array to the specified one-dimensional Array starting at the specified destination Array index. |
![]() | CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetEnumerator | Gets the object that enables iterating through the members of the collection. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | AsParallel | Enables parallelization of a query. (Defined by ParallelEnumerable.) |
![]() | AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
![]() | Cast<TResult> | Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
![]() | OfType<TResult> | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
The BaseCollection class is not intended for use by application developers. Application developers should use CollectionBase instead.
The BaseCollection class implements the ICollection interface.
Classes that derive from the BaseCollection class include:
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
