EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.
Ce sujet n'a pas encore été évalué - Évaluez ce sujet

Request object

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

The feature described in this topic is available only in preview. To use this feature and other new Windows Azure capabilities, sign up for the free preview.


Used to execute the requested operation and determine the response to the client.

This object contains the following members:

Methods

execute

Syntax Returns Description

request.execute()

undefined

Executes the default behavior for the operation.

request.execute(options)

undefined

Executes the operation with success or error handlers supplied as options. For more information, see Overriding success and error.

respond

Syntax Returns Description

request.respond()

undefined

Writes the default response.

request.respond(err)

undefined

Writes a response with the specified error object.

request.respond(statusCode, body)

undefined

Writes a custom response with the provided HTTP status code and message body.

Windows Azure Mobile Services enables you to register JavaScript code to be executed by the service when an insert, update, delete, or query operation occurs against a specific table. These scripts provide the ability to inject business logic into table operation, stop an operation from taking place, change values supplied to the operation or change the results. For more information, see How to: Register scripts on the server.

The request object is always the third argument passed to a registered script function. You must call either execute or respond in your script to make sure that the client receives a response. If you do not do this, the operation will timeout.

Cela vous a-t-il été utile ?
(1500 caractères restants)
Microsoft réalise une enquête en ligne pour recueillir votre opinion sur le site Web de MSDN. Si vous choisissez d’y participer, cette enquête en ligne vous sera présentée lorsque vous quitterez le site Web de MSDN.

Si vous souhaitez y participer,
© 2013 Microsoft. Tous droits réservés.
facebook page visit twitter rss feed newsletter