-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
BaseTemplateParser.xml
141 lines (131 loc) · 9.03 KB
/
BaseTemplateParser.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<Type Name="BaseTemplateParser" FullName="System.Web.UI.BaseTemplateParser">
<TypeSignature Language="C#" Value="public abstract class BaseTemplateParser : System.Web.UI.TemplateParser" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi abstract beforefieldinit BaseTemplateParser extends System.Web.UI.TemplateParser" />
<TypeSignature Language="DocId" Value="T:System.Web.UI.BaseTemplateParser" />
<TypeSignature Language="VB.NET" Value="Public MustInherit Class BaseTemplateParser
Inherits TemplateParser" />
<TypeSignature Language="F#" Value="type BaseTemplateParser = class
 inherit TemplateParser" />
<TypeSignature Language="C++ CLI" Value="public ref class BaseTemplateParser abstract : System::Web::UI::TemplateParser" />
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Web.UI.TemplateParser</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Implements ASP.NET template parsing for template files.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.UI.BaseTemplateParser> class provides parser functionality for the <xref:System.Web.UI.TemplateControl> and <xref:System.Web.UI.PageTheme> classes. Because the <xref:System.Web.UI.BaseTemplateParser> class is abstract, an instance of this class is not created directly.
]]></format>
</remarks>
<forInternalUseOnly />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/39dfzhdc(v=vs.100)">Template Sets and Templated Controls</related>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected BaseTemplateParser ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.BaseTemplateParser.#ctor" />
<MemberSignature Language="VB.NET" Value="Protected Sub New ()" />
<MemberSignature Language="C++ CLI" Value="protected:
 BaseTemplateParser();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Web.UI.BaseTemplateParser" /> class.</summary>
<remarks>To be added.</remarks>
<forInternalUseOnly />
</Docs>
</Member>
<Member MemberName="GetReferencedType">
<MemberSignature Language="C#" Value="protected Type GetReferencedType (string virtualPath);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance class System.Type GetReferencedType(string virtualPath) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.BaseTemplateParser.GetReferencedType(System.String)" />
<MemberSignature Language="VB.NET" Value="Protected Function GetReferencedType (virtualPath As String) As Type" />
<MemberSignature Language="F#" Value="member this.GetReferencedType : string -> Type" Usage="baseTemplateParser.GetReferencedType virtualPath" />
<MemberSignature Language="C++ CLI" Value="protected:
 Type ^ GetReferencedType(System::String ^ virtualPath);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Type</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="virtualPath" Type="System.String" />
</Parameters>
<Docs>
<param name="virtualPath">The virtual path of the <see cref="T:System.Web.UI.Page" /> or <see cref="T:System.Web.UI.UserControl" />.</param>
<summary>Compiles and returns the type of the <see cref="T:System.Web.UI.Page" /> or <see cref="T:System.Web.UI.UserControl" /> control that is specified by the virtual path.</summary>
<returns>The type of the page or user control.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
If a <xref:System.Web.UI.PageParserFilter> object is defined and its <xref:System.Web.UI.PageParserFilter.AllowVirtualReference%2A> property is `false`, the <xref:System.Web.UI.BaseTemplateParser.GetUserControlType%2A> method raises an <xref:System.Web.HttpException> exception.
The <xref:System.Web.UI.BaseTemplateParser.GetUserControlType%2A> method is a wrapper for the <xref:System.Web.UI.BaseTemplateParser.GetReferencedType%2A> method.
]]></format>
</remarks>
<exception cref="T:System.Web.HttpException">The parser does not permit a virtual reference to the resource specified by <paramref name="virtualPath" />.</exception>
<forInternalUseOnly />
<altmember cref="T:System.Web.UI.CompilationMode" />
<altmember cref="M:System.Web.UI.PageParserFilter.GetCompilationMode(System.Web.UI.CompilationMode)" />
</Docs>
</Member>
<Member MemberName="GetUserControlType">
<MemberSignature Language="C#" Value="protected internal Type GetUserControlType (string virtualPath);" />
<MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig instance class System.Type GetUserControlType(string virtualPath) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.BaseTemplateParser.GetUserControlType(System.String)" />
<MemberSignature Language="VB.NET" Value="Protected Friend Function GetUserControlType (virtualPath As String) As Type" />
<MemberSignature Language="F#" Value="member this.GetUserControlType : string -> Type" Usage="baseTemplateParser.GetUserControlType virtualPath" />
<MemberSignature Language="C++ CLI" Value="protected public:
 Type ^ GetUserControlType(System::String ^ virtualPath);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Type</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="virtualPath" Type="System.String" />
</Parameters>
<Docs>
<param name="virtualPath">The virtual path of the <see cref="T:System.Web.UI.UserControl" />.</param>
<summary>Compiles and returns the type of the <see cref="T:System.Web.UI.UserControl" /> object that is specified by the virtual path.</summary>
<returns>The type of the user control.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
If a <xref:System.Web.UI.PageParserFilter> object is defined and its <xref:System.Web.UI.PageParserFilter.AllowVirtualReference%2A> property is `false`, the <xref:System.Web.UI.BaseTemplateParser.GetUserControlType%2A> method raises an <xref:System.Web.HttpException> exception.
Additionally, if the <xref:System.Web.UI.UserControl> object that is referenced by the virtual path is marked as a no-compile control, an <xref:System.Web.HttpException> exception will be thrown. To force a <xref:System.Web.UI.UserControl> to be compiled, set the compilation mode attribute in its [@ Control](https://learn.microsoft.com/previous-versions/dotnet/netframework-4.0/d19c0t4b(v=vs.100)) directive to the <xref:System.Web.UI.CompilationMode.Always> field. To set the compilation mode for pages and controls across an application, set the `compilationMode` attribute of the [pages Element (ASP.NET Settings Schema)](https://learn.microsoft.com/previous-versions/dotnet/netframework-4.0/950xf363(v=vs.100)) in the Web.config file.
]]></format>
</remarks>
<exception cref="T:System.Web.HttpException">The <see cref="T:System.Web.UI.UserControl" /> specified by <paramref name="virtualPath" /> is marked as no compile.
-or-
The parser does not permit a virtual reference to the <see cref="T:System.Web.UI.UserControl" />.</exception>
<forInternalUseOnly />
<altmember cref="T:System.Web.UI.UserControl" />
<altmember cref="M:System.Web.UI.TemplateParser.ProcessError(System.String)" />
<altmember cref="T:System.Web.UI.CompilationMode" />
<altmember cref="T:System.Web.UI.PageParserFilter" />
</Docs>
</Member>
</Members>
</Type>