DefaultHttpHandler.OnExecuteUrlPreconditionFailure Method ()

 

Called when preconditions prevent the DefaultHttpHandler object from processing a request.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public virtual void OnExecuteUrlPreconditionFailure()

Preconditions are specified by the client in the request-header fields and are evaluated on the Web server. For example, by using preconditions, clients can prevent a requested method (for example, GET) from being applied to a resource other than the one intended. For more information, see section 14, "Header Field Definitions," in the Hypertext Transfer Protocol -- HTTP/1.1 specification on the World Wide Web Consortium (W3C) Web site.

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:

.NET Framework
Available since 2.0
Return to top
Show: