BuildProviderAppliesTo BuildProviderAppliesTo BuildProviderAppliesTo BuildProviderAppliesTo Enum

定义

指定在 BuildProviderAppliesToAttribute 对象为资源生成代码的过程中 BuildProvider 特性有效的位置。Specifies the locations where the BuildProviderAppliesToAttribute attribute is respected during code generation for a resource by a BuildProvider object.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class BuildProviderAppliesTo
[System.Flags]
public enum BuildProviderAppliesTo
type BuildProviderAppliesTo = 
Public Enum BuildProviderAppliesTo
继承
BuildProviderAppliesToBuildProviderAppliesToBuildProviderAppliesToBuildProviderAppliesTo
属性

字段

All All All All 7

指定生成提供程序在找到资源的任何地方为资源生成代码。Specifies that the build provider generates code for resources wherever the resources are found. 这是 BuildProviderAppliesToAttribute 特性的默认值。This is the default value for the BuildProviderAppliesToAttribute attribute.

Code Code Code Code 2

指定生成提供程序仅为 \App_Code 目录下的那些资源生成代码。Specifies that the build provider generates code for only those resources in the \App_Code directory.

Resources Resources Resources Resources 4

指定生成提供程序为 \App_GlobalResources 和 \App_LocalResources 目录下的资源生成代码。Specifies that the build provider generates code for resources in the \App_GlobalResources and \App_LocalResources directories.

Web Web Web Web 1

指定生成提供程序仅为 Web 内容目录下的那些资源生成代码。Web 内容目录是除保留的 ASP.NET 目录 \App_Code、\App_GlobalResources 和 \App_LocalResources 之外的目录。Specifies that the build provider generates code for only those resources in Web content directories, which are directories other than the reserved ASP.NET directories \App_Code, \App_GlobalResources, and \App_LocalResources.

注解

BuildProvider对象提供用于分析特定文件类型和在资源编译期间生成代码的功能。A BuildProvider object provides functionality to parse a particular file type and generate code during compilation of a resource. 生成提供程序为与BuildProviderAppliesToAttribute特性对应的资源和具有映射到生成提供程序的扩展的这些资源生成代码。A build provider generates code for those resources that correspond to the BuildProviderAppliesToAttribute attribute and which have the extension mapped to the build provider.

适用于

另请参阅