DefaultHttpHandler.OnExecuteUrlPreconditionFailure Método

Definição

Chamado quando as pré-condições impedem que o objeto DefaultHttpHandler processe uma solicitação.Called when preconditions prevent the DefaultHttpHandler object from processing a request.

public:
 virtual void OnExecuteUrlPreconditionFailure();
public virtual void OnExecuteUrlPreconditionFailure ();
abstract member OnExecuteUrlPreconditionFailure : unit -> unit
override this.OnExecuteUrlPreconditionFailure : unit -> unit
Public Overridable Sub OnExecuteUrlPreconditionFailure ()

Comentários

As pré-condições são especificadas pelo cliente nos campos de cabeçalho de solicitação e são avaliadas no servidor Web.Preconditions are specified by the client in the request-header fields and are evaluated on the Web server. Por exemplo, com o uso de pré-condições, os clientes podem impedir que um método solicitado (por exemplo, GET) seja aplicado a um recurso diferente daquele pretendido.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. Para obter mais informações, consulte a seção 14, "definições de campo de cabeçalho", na especificação do protocolo Hypertext Transfer Protocol--HTTP/1.1 no site da World Wide Web CONSORTIUM (W3C).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.

O OnExecuteUrlPreconditionFailure método é chamado quando as pré-condições impedem que o DefaultHttpHandler objeto processe uma solicitação.The OnExecuteUrlPreconditionFailure method is called when preconditions prevent the DefaultHttpHandler object from processing a request. Uma classe derivada pode substituir o OnExecuteUrlPreconditionFailure método para gerar uma exceção quando as pré-condições falharem.A deriving class might override the OnExecuteUrlPreconditionFailure method to throw an exception when the preconditions fail. O não DefaultHttpHandler gera uma exceção no OnExecuteUrlPreconditionFailure método.The DefaultHttpHandler does not throw an exception in the OnExecuteUrlPreconditionFailure method.

Qualquer uma das seguintes opções fará com que as pré-condições falhem:Any of the following will cause the preconditions to fail:

Aplica-se a