ProviderCollection Klasa
Definicja
Reprezentuje kolekcję obiektów dostawcy, z których dziedziczy ProviderBase .Represents a collection of provider objects that inherit from ProviderBase.
public ref class ProviderCollection : System::Collections::ICollection
public class ProviderCollection : System.Collections.ICollection
type ProviderCollection = class
interface ICollection
interface IEnumerable
type ProviderCollection = class
interface IEnumerable
interface ICollection
Public Class ProviderCollection
Implements ICollection
- Dziedziczenie
-
ProviderCollection
- Pochodne
- Implementuje
Uwagi
ProviderCollectionKlasa wykorzystuje Hashtable obiekt źródłowy do przechowywania par nazwa/wartość dostawcy.The ProviderCollection class utilizes an underlying Hashtable object to store the provider name/value pairs.
Konstruktory
ProviderCollection() |
Inicjuje nowe wystąpienie klasy ProviderCollection.Initializes a new instance of the ProviderCollection class. |
Właściwości
Count |
Pobiera liczbę dostawców w kolekcji.Gets the number of providers in the collection. |
IsSynchronized |
Pobiera wartość wskazującą, czy dostęp do kolekcji jest synchronizowany (bezpieczny wątkowo).Gets a value indicating whether access to the collection is synchronized (thread safe). |
Item[String] |
Pobiera dostawcę o określonej nazwie.Gets the provider with the specified name. |
SyncRoot |
Pobiera bieżący obiekt.Gets the current object. |
Metody
Add(ProviderBase) |
Dodaje dostawcę do kolekcji.Adds a provider to the collection. |
Clear() |
Usuwa wszystkie elementy z kolekcji.Removes all items from the collection. |
CopyTo(ProviderBase[], Int32) |
Kopiuje zawartość kolekcji do danej tablicy, rozpoczynając od określonego indeksu.Copies the contents of the collection to the given array starting at the specified index. |
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() |
Zwraca obiekt, który implementuje IEnumerator interfejs do iteracji w kolekcji.Returns an object that implements the IEnumerator interface to iterate through the collection. |
GetHashCode() |
Służy jako domyślna funkcja skrótu.Serves as the default hash function. (Odziedziczone po Object) |
GetType() |
Pobiera Type bieżące wystąpienie.Gets the Type of the current instance. (Odziedziczone po Object) |
MemberwiseClone() |
Tworzy skróconą kopię bieżącego elementu Object .Creates a shallow copy of the current Object. (Odziedziczone po Object) |
Remove(String) |
Usuwa dostawcę z kolekcji.Removes a provider from the collection. |
SetReadOnly() |
Ustawia, że kolekcja ma być tylko do odczytu.Sets the collection to be read-only. |
ToString() |
Zwraca ciąg reprezentujący bieżący obiekt.Returns a string that represents the current object. (Odziedziczone po Object) |
Jawne implementacje interfejsu
ICollection.CopyTo(Array, Int32) |
Kopiuje elementy ProviderCollection do tablicy, rozpoczynając od określonego indeksu tablicy.Copies the elements of the ProviderCollection to an array, starting at a particular array index. |
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. |