PageParserFilter.AllowVirtualReference Method (String, VirtualReferenceType)
.NET Framework (current version)
Determines whether a parser permits a virtual reference to a specific type of resource on a page.
Assembly: System.Web (in System.Web.dll)
abstract AllowVirtualReference : referenceVirtualPath:string * referenceType:VirtualReferenceType -> bool override AllowVirtualReference : referenceVirtualPath:string * referenceType:VirtualReferenceType -> bool
Parameters
- referenceVirtualPath
-
Type:
System.String
The virtual path to a resource, such as a master page file, ASP.NET page, or user control.
- referenceType
-
Type:
System.Web.UI.VirtualReferenceType
A VirtualReferenceType value that identifies the type of resource.
Return Value
Type: System.Booleantrue if the parser permits a virtual reference to a specific type of resource; otherwise, false.
The TemplateParser class determines whether a particular type of resource can be referenced from a page.
.NET Framework
Available since 2.0
Available since 2.0
Show: