Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
 OnExecuteUrlPreconditionFailure Met...

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
DefaultHttpHandler..::.OnExecuteUrlPreconditionFailure Method

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

Namespace:  System.Web
Assembly:  System.Web (in System.Web.dll)
Visual Basic (Declaration)
Public Overridable Sub OnExecuteUrlPreconditionFailure
Visual Basic (Usage)
Dim instance As DefaultHttpHandler

instance.OnExecuteUrlPreconditionFailure()
C#
public virtual void OnExecuteUrlPreconditionFailure()
Visual C++
public:
virtual void OnExecuteUrlPreconditionFailure()
JScript
public function 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:

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker