Export (0) Print
Expand All

PageParserFilter.AllowVirtualReference Method

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 virtual bool AllowVirtualReference (
	string referenceVirtualPath,
	VirtualReferenceType referenceType
)
public boolean AllowVirtualReference (
	String referenceVirtualPath, 
	VirtualReferenceType referenceType
)
public function AllowVirtualReference (
	referenceVirtualPath : String, 
	referenceType : VirtualReferenceType
) : boolean
Not applicable.

Parameters

referenceVirtualPath

The virtual path to a resource, such as a master page file, ASP.NET page, or user control.

referenceType

A VirtualReferenceType value that identifies the type of resource.

Return Value

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.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft