PageParserFilter.AllowVirtualReference(String, VirtualReferenceType) Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
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.