ProviderFeature.SelectedProviderPropertyName Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, gets the name of the attribute that specifies the currently selected provider.
public:
abstract property System::String ^ SelectedProviderPropertyName { System::String ^ get(); };
public abstract string SelectedProviderPropertyName { get; }
member this.SelectedProviderPropertyName : string
Public MustOverride ReadOnly Property SelectedProviderPropertyName As String
Property Value
The attribute name of the currently selected provider.
Examples
The following example sets the attribute name in the Web.config file's element section. This code example is part of a larger example provided for the ProviderFeature class.
// The name of the attribute that specifies the currently selected provider.
public override string SelectedProviderPropertyName
{
get {
return "defaultProvider"; }
}
Remarks
Use "defaultProvider" for the SelectedProviderPropertyName property value. This property value tells ASP.NET to initialize the default provider with the value of the siteMap
element's defaultProvider
attribute.
When a provider is defined as the "defaultProvider" the siteMap
element in the Web.config file (located in the .NET Framework version 2.0 folder) is modified to specify which provider is the default provider. The defaultProvider
attribute specifies the name of the default provider.
When the providers are viewed in the user interface (UI) in IIS Manager, the default provider has an alert notifying that the provider cannot be removed or renamed.