PageParserFilter.AllowVirtualReference Method (String, VirtualReferenceType)

 

Determines whether a parser permits a virtual reference to a specific type of resource on a page.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

Public Overridable Function AllowVirtualReference (
	referenceVirtualPath As String,
	referenceType As VirtualReferenceType
) As Boolean

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.Boolean

true 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
Return to top
Show: