MembershipSection.DefaultProvider Property
.NET Framework (current version)
Gets or sets the name of the default provider that is used to manage roles.
Assembly: System.Web (in System.Web.dll)
[<ConfigurationPropertyAttribute("defaultProvider", DefaultValue = "AspNetSqlMembershipProvider")>] [<StringValidatorAttribute(MinLength = 1)>] member DefaultProvider : string with get, set
Property Value
Type: System.StringThe name of a provider in Providers. The default is AspNetSqlRoleProvider.
The DefaultProvider must match a named value in the providers subsection of the membership section of the configuration file. An empty string ("") is not a valid value for the DefaultProvider property.
The following code example demonstrates how to use the DefaultProvider property. This code example is part of a larger example provided for the MembershipSection class.
.NET Framework
Available since 2.0
Available since 2.0
Show: