Редактиране

Споделяне чрез


BaseCollection Class

Definition

Provides the base functionality for creating data-related collections in the System.Windows.Forms namespace.

public ref class BaseCollection : MarshalByRefObject, System::Collections::ICollection
public class BaseCollection : MarshalByRefObject, System.Collections.ICollection
type BaseCollection = class
    inherit MarshalByRefObject
    interface ICollection
    interface IEnumerable
Public Class BaseCollection
Inherits MarshalByRefObject
Implements ICollection
Inheritance
BaseCollection
Derived
Implements

Remarks

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:

Constructors

BaseCollection()

Initializes a new instance of the BaseCollection class.

Properties

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.

Methods

CopyTo(Array, Int32)

Copies all the elements of the current one-dimensional Array to the specified one-dimensional Array starting at the specified destination Array index.

CreateObjRef(Type)

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)
GetEnumerator()

Gets the object that enables iterating through the members of the collection.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetLifetimeService()
Obsolete.

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()
Obsolete.

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)

Extension Methods

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to