CancelRequest Method
Cancels a pending request.
Syntax
public void cancelRequest(String requestId);
Remarks
This method cancels the request in the PendingRequests collection identified by RequestId.
When the component is operating in client mode, the requests in the PendingRequests collection represent outgoing requests for which responses have not yet been received. Canceling one will cause the RequestComplete event to fire with an appropriate ErrorCode and ErrorDescription.
When the component is operating in server mode, the requests in the PendingRequests collection represent incoming requests for which responses have not yet been sent. Canceling one will cause the ResponseComplete event to fire with an appropriate ErrorCode and ErrorDescription.