WebPartsPersonalization.Providers Property
.NET Framework (current version)
Gets a ProviderSettingsCollection collection that contains the Web Parts personalization providers for the current Web application.
Assembly: System.Web (in System.Web.dll)
<ConfigurationPropertyAttribute("providers")> Public ReadOnly Property Providers As ProviderSettingsCollection
Property Value
Type: System.Configuration.ProviderSettingsCollectionA ProviderSettingsCollection collection that contains the Web Parts personalization providers for the current Web application.
Web Parts personalization providers can only be defined at the Web-application level (in a Web.config file).
The following code example shows how to use the Providers property. This code example is part of a larger example provided for the WebPartsSection class.
' Add a provider. webPartsSection.Personalization.Providers.Add( _ New ProviderSettings("CustomProvider", _ "MyCustomProviders.Provider")) ' List current providers. Dim pi As Integer For pi = 0 To webPartsSection.Personalization.Providers.Count - 1 Console.WriteLine(" #{0} Name={1} Type={2}", pi, _ webPartsSection.Personalization.Providers(pi).Name, _ webPartsSection.Personalization.Providers(pi).Type) Next
.NET Framework
Available since 2.0
Available since 2.0
Show: