VirtualReferenceType 枚举

定义

指定已分析的虚拟路径引用的资源的类型。Specifies the type of resource referenced by a parsed virtual path.

public enum class VirtualReferenceType
public enum VirtualReferenceType
type VirtualReferenceType = 
Public Enum VirtualReferenceType
继承
VirtualReferenceType

字段

Master 2

已分析的虚拟路径引用母版页文件。The parsed virtual path references a master page file.

Other 4

已分析的虚拟路径引用不是 ASP.NET 页、母版页、用户控件或语言特定的代码文件的资源。The parsed virtual path references a resource that is not an ASP.NET page, master page, user control, or language-specific code file.

Page 0

已分析的虚拟路径引用 ASP.NET 页。The parsed virtual path references an ASP.NET page.

SourceFile 3

已分析的虚拟路径引用使用特定语言编译器编译的代码文件。The parsed virtual path references a code file that is compiled using a specific language compiler.

UserControl 1

已分析的虚拟路径引用 ASP.NET 用户控件。The parsed virtual path references an ASP.NET user control.

注解

VirtualReferenceType枚举描述虚拟路径引用的资源类型。The VirtualReferenceType enumeration describes the type of resource referenced by a virtual path. VirtualReferenceType从已分析的资源扩展中确定的。The VirtualReferenceType is determined from the parsed extension of the resource.

页面和控件开发人员不会直接VirtualReferenceType使用枚举。Page and control developers do not use the VirtualReferenceType enumeration directly. 扩展类并重写VirtualReferenceTypeAllowVirtualReference方法时, 扩展性开发人员可能会使用枚举。 PageParserFilterExtensibility developers might use the VirtualReferenceType enumeration when extending the PageParserFilter class and overriding its AllowVirtualReference method.

适用于

另请参阅