PageParserFilter.AllowVirtualReference(String, VirtualReferenceType) Metódus

Definíció

Meghatározza, hogy egy elemző engedélyezi-e a virtuális hivatkozást egy adott típusú erőforrásra az oldalon.

public:
 virtual bool AllowVirtualReference(System::String ^ referenceVirtualPath, System::Web::UI::VirtualReferenceType referenceType);
public virtual bool AllowVirtualReference(string referenceVirtualPath, System.Web.UI.VirtualReferenceType referenceType);
abstract member AllowVirtualReference : string * System.Web.UI.VirtualReferenceType -> bool
override this.AllowVirtualReference : string * System.Web.UI.VirtualReferenceType -> bool
Public Overridable Function AllowVirtualReference (referenceVirtualPath As String, referenceType As VirtualReferenceType) As Boolean

Paraméterek

referenceVirtualPath
String

Egy erőforrás virtuális elérési útja, például mesterlapfájl, ASP.NET lap vagy felhasználói vezérlő.

referenceType
VirtualReferenceType

Az VirtualReferenceType erőforrás típusát azonosító érték.

Válaszok

trueha az elemző virtuális hivatkozást engedélyez egy adott erőforrástípusra; egyéb esetben. false

Megjegyzések

Az TemplateParser osztály meghatározza, hogy egy adott erőforrástípus hivatkozható-e egy lapról.

A következőre érvényes:

Lásd még