DefaultHttpHandler.OnExecuteUrlPreconditionFailure Method
.NET Framework 3.0
Called when preconditions prevent the DefaultHttpHandler object from processing a request.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
The OnExecuteUrlPreconditionFailure method is called when preconditions prevent the DefaultHttpHandler object from processing a request. A deriving class might override the OnExecuteUrlPreconditionFailure method to throw an exception when the preconditions fail. The DefaultHttpHandler does not throw an exception in the OnExecuteUrlPreconditionFailure method.
Any of the following will cause the preconditions to fail.
-
Calling System.Web.HttpResponse.Write.
-
Calling HttpResponse.AddHeader.
-
Calling HttpResponse.Flush.
-
Changing the cache policy for the response.
-
Adding a Stream object as a filter to the HttpResponse.Filter property.
Community Additions
ADD
Show: