|
The client has issued a command to the server.
Syntax
Sub object_OnCommand (
[Index As Integer,]
ByVal ClientId As Variant,
ByVal Command As Variant,
ByVal Resource As Variant,
ByVal Parameters As Variant
)
Parameters
- ClientId
- An integer value which uniquely identifies the client session.
- Command
- A string that specifies the command that was sent to the server.
- Resource
- A string that specifies the resource that the client has
requested. Depending on the command issued, it may be a document, a
folder or an executable script.
- Parameters
- A string that specifies any query parameters that have been
provided by the client. The string will be empty if there were no
query parameters included with the request. The query parameters in
this string will be URL encoded.
Remarks
The OnCommand event occurs after the client has sent a
command to the server, but before the command has been processed. This
event occurs for all commands issued by the client, including invalid
or disabled commands. If the application wishes to handle the command
itself, it must perform any processing and then call the
SendResponse method to return data to the client, or the
SendError method to send an error response. If no response to the
request is sent from within the event handler, then the
server will perform its default processing for the command.
After the command has been processed, the OnResult event
handler will be invoked.
See Also
CommandLine Property,
SendError Method,
SendResponse Method,
OnResult Event
|
|