Export (0) Print
Expand All

ProviderCollection Class

Represents a collection of provider objects that inherit from ProviderBase.

Namespace:  System.Configuration.Provider
Assembly:  System.Configuration (in System.Configuration.dll)

public class ProviderCollection : IEnumerable, 
	ICollection

The ProviderCollection type exposes the following members.

  NameDescription
Public methodProviderCollectionInitializes a new instance of the ProviderCollection class.
Top

  NameDescription
Public propertyCountGets the number of providers in the collection.
Public propertyIsSynchronizedGets a value indicating whether access to the collection is synchronized (thread safe).
Public propertyItemGets the provider with the specified name.
Public propertySyncRootGets the current object.
Top

  NameDescription
Public methodAddAdds a provider to the collection.
Public methodClearRemoves all items from the collection.
Public methodCopyToCopies the contents of the collection to the given array starting at the specified index.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetEnumeratorReturns an object that implements the IEnumerator interface to iterate through the collection.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRemoveRemoves a provider from the collection.
Public methodSetReadOnlySets the collection to be read-only.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public Extension MethodAsParallelEnables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension MethodAsQueryableConverts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodCast<TResult>Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodOfType<TResult>Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

  NameDescription
Explicit interface implemetationPrivate methodICollection.CopyToCopies the elements of the ProviderCollection to an array, starting at a particular array index.
Top

The ProviderCollection class utilizes an underlying Hashtable object to store the provider name/value pairs.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft