ProviderCollection Class
Represents a collection of provider objects that inherit from ProviderBase.
Assembly: System.Configuration (in System.Configuration.dll)
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
| Name | Description | |
|---|---|---|
![]() | ProviderCollection() | Initializes a new instance of the ProviderCollection class. |
| 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(String) | Gets the provider with the specified name. |
![]() | SyncRoot | Gets the current object. |
| Name | Description | |
|---|---|---|
![]() | Add(ProviderBase) | Adds a provider to the collection. |
![]() | Clear() | Removes all items from the collection. |
![]() | CopyTo(ProviderBase[], Int32) | 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 the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | Remove(String) | 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 | |
|---|---|---|
![]() ![]() | ICollection.CopyTo(Array, Int32) | Copies the elements of the ProviderCollection to an array, starting at a particular array index. |
| Name | Description | |
|---|---|---|
![]() | AsParallel() | Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.) |
![]() | AsQueryable() | Overloaded. 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.) |
The ProviderCollection class utilizes an underlying Hashtable object to store the provider name/value pairs.
Available since 2.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.jpeg?cs-save-lang=1&cs-lang=fsharp)
.jpeg?cs-save-lang=1&cs-lang=fsharp)
.jpeg?cs-save-lang=1&cs-lang=fsharp)
.jpeg?cs-save-lang=1&cs-lang=fsharp)
.jpeg?cs-save-lang=1&cs-lang=fsharp)