ProviderFeature.SectionName 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 configuration section that set up the provider.
public:
abstract property System::String ^ SectionName { System::String ^ get(); };
public abstract string SectionName { get; }
member this.SectionName : string
Public MustOverride ReadOnly Property SectionName As String
Property Value
The section name used to load the provider.
Examples
The following example sets the section name. This code example is part of a larger example provided for the ProviderFeature class.
// The section for the siteMap element.
public override string SectionName
{
get { return "system.web/siteMap"; }
}
Remarks
Gets the section containing the providers as defined in Web.config. The returned values may be strings such as "system.web/siteMap". The configuration section must be defined in the Web.config file or an error will occur.