ProviderCollection Class
.NET Framework 4.5
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Represents a collection of provider objects that inherit from ProviderBase.
System.Object
System.Configuration.Provider.ProviderCollection
System.Configuration.ProtectedConfigurationProviderCollection
System.Configuration.SettingsProviderCollection
System.Web.Caching.OutputCacheProviderCollection
System.Web.Security.MembershipProviderCollection
System.Web.Security.RoleProviderCollection
System.Web.SiteMapProviderCollection
System.Web.UI.WebControls.WebParts.PersonalizationProviderCollection
System.Configuration.Provider.ProviderCollection
System.Configuration.ProtectedConfigurationProviderCollection
System.Configuration.SettingsProviderCollection
System.Web.Caching.OutputCacheProviderCollection
System.Web.Security.MembershipProviderCollection
System.Web.Security.RoleProviderCollection
System.Web.SiteMapProviderCollection
System.Web.UI.WebControls.WebParts.PersonalizationProviderCollection
Namespace: System.Configuration.Provider
Assembly: System.Configuration (in System.Configuration.dll)
The ProviderCollection type exposes the following members.
| Name | Description | |
|---|---|---|
|
Count | Gets the number of providers in the collection. |
|
IsSynchronized | Gets a value indicating whether access to the collection is synchronized (thread safe). |
|
Item | Gets the provider with the specified name. |
|
SyncRoot | Gets the current object. |
| Name | Description | |
|---|---|---|
|
Add | Adds a provider to the collection. |
|
Clear | Removes all items from the collection. |
|
CopyTo | Copies the contents of the collection to the given array starting at the specified index. |
|
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 | Returns an object that implements the IEnumerator interface to iterate through the collection. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Remove | Removes a provider from the collection. |
|
SetReadOnly | Sets the collection to be read-only. |
|
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.) |
| Name | Description | |
|---|---|---|
|
ICollection.CopyTo | Copies the elements of the ProviderCollection to an array, starting at a particular array index. |
The ProviderCollection class utilizes an underlying Hashtable object to store the provider name/value pairs.
Windows 8 Consumer Preview, Windows Server 8 Beta, Windows 7, Windows Server 2008 SP2, Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.