BaseCollection Klasa
Definicja
Zapewnia podstawowe funkcje tworzenia kolekcji związanych z danymi w System.Windows.Forms przestrzeni nazw.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
- Dziedziczenie
- Pochodne
- Implementuje
Uwagi
BaseCollectionKlasa nie jest przeznaczona do użycia przez deweloperów aplikacji.The BaseCollection class is not intended for use by application developers. Deweloperzy aplikacji powinni korzystać z programu CollectionBase .Application developers should use CollectionBase instead.
Klasa BaseCollection implementuje interfejs ICollection.The BaseCollection class implements the ICollection interface.
Klasy pochodne od BaseCollection klasy obejmują:Classes that derive from the BaseCollection class include:
Konstruktory
BaseCollection() |
Inicjuje nowe wystąpienie klasy BaseCollection.Initializes a new instance of the BaseCollection class. |
Właściwości
Count |
Pobiera łączną liczbę elementów w kolekcji.Gets the total number of elements in the collection. |
IsReadOnly |
Pobiera wartość wskazującą, czy kolekcja jest przeznaczona tylko do odczytu.Gets a value indicating whether the collection is read-only. |
IsSynchronized |
Pobiera wartość wskazującą, czy dostęp do programu ICollection jest synchronizowany.Gets a value indicating whether access to the ICollection is synchronized. |
List |
Pobiera listę elementów zawartych w BaseCollection wystąpieniu.Gets the list of elements contained in the BaseCollection instance. |
SyncRoot |
Pobiera obiekt, który może służyć do synchronizowania dostępu do BaseCollection .Gets an object that can be used to synchronize access to the BaseCollection. |
Metody
CopyTo(Array, Int32) |
Kopiuje wszystkie elementy z prądu jednowymiarowego Array do określonego, Array rozpoczynając od określonego Array indeksu docelowego.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) |
Tworzy obiekt, który zawiera wszystkie istotne informacje wymagane do wygenerowania serwera proxy używanego do komunikacji z obiektem zdalnym.Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Odziedziczone po MarshalByRefObject) |
Equals(Object) |
Określa, czy dany obiekt jest taki sam, jak bieżący obiekt.Determines whether the specified object is equal to the current object. (Odziedziczone po Object) |
GetEnumerator() |
Pobiera obiekt, który umożliwia wykonywanie iteracji przez elementy członkowskie kolekcji.Gets the object that enables iterating through the members of the collection. |
GetHashCode() |
Służy jako domyślna funkcja skrótu.Serves as the default hash function. (Odziedziczone po Object) |
GetLifetimeService() |
Nieaktualne.
Pobiera bieżący obiekt usługi okresu istnienia, który kontroluje zasady okresu istnienia dla tego wystąpienia.Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Odziedziczone po MarshalByRefObject) |
GetType() |
Pobiera Type bieżące wystąpienie.Gets the Type of the current instance. (Odziedziczone po Object) |
InitializeLifetimeService() |
Nieaktualne.
Uzyskuje obiekt usługi istnienia w celu kontrolowania zasad okresu istnienia dla tego wystąpienia.Obtains a lifetime service object to control the lifetime policy for this instance. (Odziedziczone po MarshalByRefObject) |
MemberwiseClone() |
Tworzy skróconą kopię bieżącego elementu Object .Creates a shallow copy of the current Object. (Odziedziczone po Object) |
MemberwiseClone(Boolean) |
Tworzy skróconą kopię bieżącego MarshalByRefObject obiektu.Creates a shallow copy of the current MarshalByRefObject object. (Odziedziczone po MarshalByRefObject) |
ToString() |
Zwraca ciąg reprezentujący bieżący obiekt.Returns a string that represents the current object. (Odziedziczone po Object) |
Metody rozszerzania
Cast<TResult>(IEnumerable) |
Rzutuje elementy elementu IEnumerable do określonego typu.Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
Filtruje elementy IEnumerable w oparciu o określony typ.Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
Włącza przetwarzanie równoległe zapytania.Enables parallelization of a query. |
AsQueryable(IEnumerable) |
Konwertuje IEnumerable do IQueryable .Converts an IEnumerable to an IQueryable. |