Files
Joel Martinez 6999270099 [docs] Import of Microsoft BCL Documentation.
The documentation is creative commons licensed.
2014-04-27 21:33:01 -04:00

78 lines
3.9 KiB
XML
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<Type Name="CompilationMode" FullName="System.Web.UI.CompilationMode">
<TypeSignature Language="C#" Value="public enum CompilationMode" />
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Enum</BaseTypeName>
</Base>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="T:System.Web.UI.CompilationMode" /> enumeration values indicate whether a page or control should be compiled at run time. When no compilation mode is specified, the default value is <see cref="F:System.Web.UI.CompilationMode.Always" />. Setting a page to never compile using the <see cref="F:System.Web.UI.CompilationMode.Never" /> attribute will increase performance by disqualifying the specified page in the compilation process. To define a page-specific <see cref="T:System.Web.UI.CompilationMode" /> attribute that specifies an .aspx, .ascx or .master file should not be compiled at the page level, you can use a directive like the following:</para>
<para>&lt;%@ page compilationMode="never" %&gt;</para>
<para>The compilation mode can also be specified in configuration files. The <see cref="T:System.Web.Configuration.PagesSection" /> configuration section object identifies page-specific configuration settings. The <format type="text/html"><a href="4123bb66-3fe4-4d62-b70e-33758656b458">pages</a></format> configuration section element can be declared at the machine, site, application, and subdirectory levels of the configuration files. </para>
<para>If the <see cref="T:System.Web.UI.CompilationMode" /> is set to <see cref="F:System.Web.UI.CompilationMode.Never" /> and a page contains a script block or code construct that requires compilation, ASP.NET will return with an error and the page will not run.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Defines constants that specify how ASP.NET should compile .aspx pages and .ascx controls.</para>
</summary>
</Docs>
<Members>
<Member MemberName="Always">
<MemberSignature Language="C#" Value="Always" />
<MemberType>Field</MemberType>
<ReturnValue>
<ReturnType>System.Web.UI.CompilationMode</ReturnType>
</ReturnValue>
<Docs>
<since version=".NET 2.0" />
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The page should always be compiled.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="Auto">
<MemberSignature Language="C#" Value="Auto" />
<MemberType>Field</MemberType>
<ReturnValue>
<ReturnType>System.Web.UI.CompilationMode</ReturnType>
</ReturnValue>
<Docs>
<since version=".NET 2.0" />
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>ASP.NET will not compile the page, if possible.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="Never">
<MemberSignature Language="C#" Value="Never" />
<MemberType>Field</MemberType>
<ReturnValue>
<ReturnType>System.Web.UI.CompilationMode</ReturnType>
</ReturnValue>
<Docs>
<since version=".NET 2.0" />
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The page or control should never be dynamically compiled.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
</Members>
</Type>