System.Web.Compilation.BuildProviderAppliesToAttribute Class

Defines an attribute that specifies the scope where a build provider will be applied when a resource is located. This class cannot be inherited.

See Also: BuildProviderAppliesToAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class BuildProviderAppliesToAttribute : Attribute

Remarks

The System.Web.Compilation.BuildProvider class will parse and generate code during compilation for a resource with a specific file extension. The System.Web.Compilation.BuildProviderAppliesToAttribute attribute defines the location scope for which the System.Web.Compilation.BuildProvider object will be called.

By setting the System.Web.Compilation.BuildProviderAppliesToAttribute attribute, you can limit a System.Web.Compilation.BuildProvider object to certain reserved ASP.NET directories, such as \App_Code.

If you do not apply a System.Web.Compilation.BuildProviderAppliesToAttribute attribute to a System.Web.Compilation.BuildProvider class, the default is BuildProviderAppliesTo.All.

Requirements

Namespace: System.Web.Compilation
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0