This documentation is archived and is not being maintained.
ProviderCollection Class
Visual Studio 2010
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
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(Of TResult) | Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
![]() | OfType(Of 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 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
