Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
320 lines (312 sloc) 17.9 KB
<Type Name="RequestNotification" FullName="System.Web.RequestNotification">
<TypeSignature Language="C#" Value="public enum RequestNotification" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed RequestNotification extends System.Enum" />
<TypeSignature Language="DocId" Value="T:System.Web.RequestNotification" />
<TypeSignature Language="VB.NET" Value="Public Enum RequestNotification" />
<TypeSignature Language="C++ CLI" Value="public enum class RequestNotification" />
<TypeSignature Language="F#" Value="type RequestNotification = " />
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Enum</BaseTypeName>
</Base>
<Attributes>
<Attribute>
<AttributeName>System.Flags</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Indicates when events and other life-cycle events occur while a <see cref="T:System.Web.HttpApplication" /> request is being processed.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.RequestNotification> enumeration is used with the <xref:System.Web.HttpContext.CurrentNotification%2A> property of the <xref:System.Web.HttpContext> class to determine what event in the pipeline is currently processing. To determine when all the handlers for a specific event of the <xref:System.Web.HttpApplication> instance have finished processing, use the <xref:System.Web.HttpContext.IsPostNotification%2A> property.
The <xref:System.Web.RequestNotification> type is introduced in the [!INCLUDE[net_v35_long](~/includes/net-v35-long-md.md)]. For more information, see [Versions and Dependencies](~/docs/framework/migration-guide/versions-and-dependencies.md).
## Examples
The following example shows how to use the <xref:System.Web.RequestNotification> enumeration with the <xref:System.Web.HttpContext.CurrentNotification%2A> property to determine which event of the current <xref:System.Web.HttpApplication> instance is processing the request.
[!code-csharp[System.Web.HttpResponse.IsPostNotification#1](~/samples/snippets/csharp/VS_Snippets_WebNet/System.Web.HttpResponse.IsPostNotification/CS/App_Code/TestModule.cs#1)]
[!code-vb[System.Web.HttpResponse.IsPostNotification#1](~/samples/snippets/visualbasic/VS_Snippets_WebNet/System.Web.HttpResponse.IsPostNotification/VB/App_Code/TestModule.vb#1)]
]]></format>
</remarks>
<altmember cref="P:System.Web.HttpContext.CurrentNotification" />
<altmember cref="P:System.Web.HttpContext.IsPostNotification" />
</Docs>
<Members>
<Member MemberName="AcquireRequestState">
<MemberSignature Language="C#" Value="AcquireRequestState" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Web.RequestNotification AcquireRequestState = int32(32)" />
<MemberSignature Language="DocId" Value="F:System.Web.RequestNotification.AcquireRequestState" />
<MemberSignature Language="VB.NET" Value="AcquireRequestState" />
<MemberSignature Language="C++ CLI" Value="AcquireRequestState" />
<MemberSignature Language="F#" Value="AcquireRequestState = 32" Usage="System.Web.RequestNotification.AcquireRequestState" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.RequestNotification</ReturnType>
</ReturnValue>
<MemberValue>32</MemberValue>
<Docs>
<summary>Indicates that the <see cref="E:System.Web.HttpApplication.AcquireRequestState" /> event was raised for the request and is processing.</summary>
</Docs>
</Member>
<Member MemberName="AuthenticateRequest">
<MemberSignature Language="C#" Value="AuthenticateRequest" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Web.RequestNotification AuthenticateRequest = int32(2)" />
<MemberSignature Language="DocId" Value="F:System.Web.RequestNotification.AuthenticateRequest" />
<MemberSignature Language="VB.NET" Value="AuthenticateRequest" />
<MemberSignature Language="C++ CLI" Value="AuthenticateRequest" />
<MemberSignature Language="F#" Value="AuthenticateRequest = 2" Usage="System.Web.RequestNotification.AuthenticateRequest" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.RequestNotification</ReturnType>
</ReturnValue>
<MemberValue>2</MemberValue>
<Docs>
<summary>Indicates that the <see cref="E:System.Web.HttpApplication.AuthenticateRequest" /> event was raised for the request and is processing.</summary>
</Docs>
</Member>
<Member MemberName="AuthorizeRequest">
<MemberSignature Language="C#" Value="AuthorizeRequest" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Web.RequestNotification AuthorizeRequest = int32(4)" />
<MemberSignature Language="DocId" Value="F:System.Web.RequestNotification.AuthorizeRequest" />
<MemberSignature Language="VB.NET" Value="AuthorizeRequest" />
<MemberSignature Language="C++ CLI" Value="AuthorizeRequest" />
<MemberSignature Language="F#" Value="AuthorizeRequest = 4" Usage="System.Web.RequestNotification.AuthorizeRequest" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.RequestNotification</ReturnType>
</ReturnValue>
<MemberValue>4</MemberValue>
<Docs>
<summary>Indicates that the <see cref="E:System.Web.HttpApplication.AuthorizeRequest" /> event was raised for the request and is processing.</summary>
</Docs>
</Member>
<Member MemberName="BeginRequest">
<MemberSignature Language="C#" Value="BeginRequest" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Web.RequestNotification BeginRequest = int32(1)" />
<MemberSignature Language="DocId" Value="F:System.Web.RequestNotification.BeginRequest" />
<MemberSignature Language="VB.NET" Value="BeginRequest" />
<MemberSignature Language="C++ CLI" Value="BeginRequest" />
<MemberSignature Language="F#" Value="BeginRequest = 1" Usage="System.Web.RequestNotification.BeginRequest" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.RequestNotification</ReturnType>
</ReturnValue>
<MemberValue>1</MemberValue>
<Docs>
<summary>Indicates that the <see cref="E:System.Web.HttpApplication.BeginRequest" /> event was raised for the request and is processing.</summary>
</Docs>
</Member>
<Member MemberName="EndRequest">
<MemberSignature Language="C#" Value="EndRequest" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Web.RequestNotification EndRequest = int32(2048)" />
<MemberSignature Language="DocId" Value="F:System.Web.RequestNotification.EndRequest" />
<MemberSignature Language="VB.NET" Value="EndRequest" />
<MemberSignature Language="C++ CLI" Value="EndRequest" />
<MemberSignature Language="F#" Value="EndRequest = 2048" Usage="System.Web.RequestNotification.EndRequest" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.RequestNotification</ReturnType>
</ReturnValue>
<MemberValue>2048</MemberValue>
<Docs>
<summary>Indicates that the <see cref="E:System.Web.HttpApplication.EndRequest" /> event was raised for the request and is processing.</summary>
</Docs>
</Member>
<Member MemberName="ExecuteRequestHandler">
<MemberSignature Language="C#" Value="ExecuteRequestHandler" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Web.RequestNotification ExecuteRequestHandler = int32(128)" />
<MemberSignature Language="DocId" Value="F:System.Web.RequestNotification.ExecuteRequestHandler" />
<MemberSignature Language="VB.NET" Value="ExecuteRequestHandler" />
<MemberSignature Language="C++ CLI" Value="ExecuteRequestHandler" />
<MemberSignature Language="F#" Value="ExecuteRequestHandler = 128" Usage="System.Web.RequestNotification.ExecuteRequestHandler" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.RequestNotification</ReturnType>
</ReturnValue>
<MemberValue>128</MemberValue>
<Docs>
<summary>Indicates that the handler that is mapped to the requested resource is being invoked to process the request.</summary>
</Docs>
</Member>
<Member MemberName="LogRequest">
<MemberSignature Language="C#" Value="LogRequest" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Web.RequestNotification LogRequest = int32(1024)" />
<MemberSignature Language="DocId" Value="F:System.Web.RequestNotification.LogRequest" />
<MemberSignature Language="VB.NET" Value="LogRequest" />
<MemberSignature Language="C++ CLI" Value="LogRequest" />
<MemberSignature Language="F#" Value="LogRequest = 1024" Usage="System.Web.RequestNotification.LogRequest" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.RequestNotification</ReturnType>
</ReturnValue>
<MemberValue>1024</MemberValue>
<Docs>
<summary>Indicates that the <see cref="E:System.Web.HttpApplication.LogRequest" /> event was raised for the request and is processing.</summary>
</Docs>
</Member>
<Member MemberName="MapRequestHandler">
<MemberSignature Language="C#" Value="MapRequestHandler" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Web.RequestNotification MapRequestHandler = int32(16)" />
<MemberSignature Language="DocId" Value="F:System.Web.RequestNotification.MapRequestHandler" />
<MemberSignature Language="VB.NET" Value="MapRequestHandler" />
<MemberSignature Language="C++ CLI" Value="MapRequestHandler" />
<MemberSignature Language="F#" Value="MapRequestHandler = 16" Usage="System.Web.RequestNotification.MapRequestHandler" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.RequestNotification</ReturnType>
</ReturnValue>
<MemberValue>16</MemberValue>
<Docs>
<summary>Indicates that the <see cref="E:System.Web.HttpApplication.MapRequestHandler" /> event was raised for the request and is processing.</summary>
</Docs>
</Member>
<Member MemberName="PreExecuteRequestHandler">
<MemberSignature Language="C#" Value="PreExecuteRequestHandler" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Web.RequestNotification PreExecuteRequestHandler = int32(64)" />
<MemberSignature Language="DocId" Value="F:System.Web.RequestNotification.PreExecuteRequestHandler" />
<MemberSignature Language="VB.NET" Value="PreExecuteRequestHandler" />
<MemberSignature Language="C++ CLI" Value="PreExecuteRequestHandler" />
<MemberSignature Language="F#" Value="PreExecuteRequestHandler = 64" Usage="System.Web.RequestNotification.PreExecuteRequestHandler" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.RequestNotification</ReturnType>
</ReturnValue>
<MemberValue>64</MemberValue>
<Docs>
<summary>Indicates a point in the application life cycle just before the handler that processes the request is mapped.</summary>
</Docs>
</Member>
<Member MemberName="ReleaseRequestState">
<MemberSignature Language="C#" Value="ReleaseRequestState" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Web.RequestNotification ReleaseRequestState = int32(256)" />
<MemberSignature Language="DocId" Value="F:System.Web.RequestNotification.ReleaseRequestState" />
<MemberSignature Language="VB.NET" Value="ReleaseRequestState" />
<MemberSignature Language="C++ CLI" Value="ReleaseRequestState" />
<MemberSignature Language="F#" Value="ReleaseRequestState = 256" Usage="System.Web.RequestNotification.ReleaseRequestState" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.RequestNotification</ReturnType>
</ReturnValue>
<MemberValue>256</MemberValue>
<Docs>
<summary>Indicates that the <see cref="E:System.Web.HttpApplication.ReleaseRequestState" /> event was raised for the request and is processing.</summary>
</Docs>
</Member>
<Member MemberName="ResolveRequestCache">
<MemberSignature Language="C#" Value="ResolveRequestCache" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Web.RequestNotification ResolveRequestCache = int32(8)" />
<MemberSignature Language="DocId" Value="F:System.Web.RequestNotification.ResolveRequestCache" />
<MemberSignature Language="VB.NET" Value="ResolveRequestCache" />
<MemberSignature Language="C++ CLI" Value="ResolveRequestCache" />
<MemberSignature Language="F#" Value="ResolveRequestCache = 8" Usage="System.Web.RequestNotification.ResolveRequestCache" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.RequestNotification</ReturnType>
</ReturnValue>
<MemberValue>8</MemberValue>
<Docs>
<summary>Indicates that the <see cref="E:System.Web.HttpApplication.ResolveRequestCache" /> event was raised for the request and is processing.</summary>
</Docs>
</Member>
<Member MemberName="SendResponse">
<MemberSignature Language="C#" Value="SendResponse" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Web.RequestNotification SendResponse = int32(536870912)" />
<MemberSignature Language="DocId" Value="F:System.Web.RequestNotification.SendResponse" />
<MemberSignature Language="VB.NET" Value="SendResponse" />
<MemberSignature Language="C++ CLI" Value="SendResponse" />
<MemberSignature Language="F#" Value="SendResponse = 536870912" Usage="System.Web.RequestNotification.SendResponse" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.RequestNotification</ReturnType>
</ReturnValue>
<MemberValue>536870912</MemberValue>
<Docs>
<summary>Indicates that processing of the request is complete and that the response is being sent.</summary>
</Docs>
</Member>
<Member MemberName="UpdateRequestCache">
<MemberSignature Language="C#" Value="UpdateRequestCache" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Web.RequestNotification UpdateRequestCache = int32(512)" />
<MemberSignature Language="DocId" Value="F:System.Web.RequestNotification.UpdateRequestCache" />
<MemberSignature Language="VB.NET" Value="UpdateRequestCache" />
<MemberSignature Language="C++ CLI" Value="UpdateRequestCache" />
<MemberSignature Language="F#" Value="UpdateRequestCache = 512" Usage="System.Web.RequestNotification.UpdateRequestCache" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.RequestNotification</ReturnType>
</ReturnValue>
<MemberValue>512</MemberValue>
<Docs>
<summary>Indicates that the <see cref="E:System.Web.HttpApplication.UpdateRequestCache" /> event was raised for the request and is processing.</summary>
</Docs>
</Member>
</Members>
</Type>
You can’t perform that action at this time.