BuildProviderCollection Class
Assembly: System.Web (in system.web.dll)
The BuildProviderCollection is used to compile custom resource files. You can have any number of build providers. The BuildProviderCollection does not refer to any actual element in the underlying configuration file. It is a construct that allows easy access to the compilation information it contains.
This section provides two code examples. The first demonstrates how to declaratively specify values for several properties of the BuildProviderCollection class. The second demonstrates how to use members of the BuildProviderCollection class.
The following configuration file example shows how to declaratively specify values for several properties of the BuildProviderCollection class.
<system.web>
<compilation>
<buildProviders>
<add extension=".aspx"
type="System.Web.Compilation.PageBuildProvider"
appliesTo="Web" />
<add extension=".ascx"
type="System.Web.Compilation.UserControlBuildProvider"
appliesTo="Web" />
<add extension=".master"
type="System.Web.Compilation.MasterPageBuildProvider"
appliesTo="Web" />
<add extension=".asix"
type="System.Web.Compilation.ImageGeneratorBuildProvider"
appliesTo="Web" />
<add extension=".asmx"
type="System.Web.Compilation.WebServiceBuildProvider"
appliesTo="Web" />
<add extension=".ashx"
type="System.Web.Compilation.WebHandlerBuildProvider"
appliesTo="Web" />
<add extension=".soap"
type="System.Web.Compilation.WebServiceBuildProvider"
appliesTo="Web" />
<add extension=".resx"
type="System.Web.Compilation.ResXBuildProvider"
appliesTo="Resources" />
<add extension=".resources"
type="System.Web.Compilation.ResourcesBuildProvider"
appliesTo="Code, Resources" />
<add extension=".wsdl"
type="System.Web.Compilation.WsdlBuildProvider"
appliesTo="Code" />
<add extension=".xsd"
type="System.Web.Compilation.XsdBuildProvider"
appliesTo="Code" />
</buildProviders>
</compilation>
</system.web>
The following code example demonstrates how to use members of the BuildProviderCollection class.
System.Configuration.ConfigurationElement
System.Configuration.ConfigurationElementCollection
System.Web.Configuration.BuildProviderCollection