Lightstreamer WinRT Client 1.0.2
ContentsIndexHome
PreviousUpNext
ISendMessageListener.OnError Method

Notification of an error which prevents the correct handling of a Message sent through LSClient.SendMessage from being accomplished.

C++
void OnError(int code, string error, MessageInfo originalMessage, int prog);
C#
void OnError(int code, string error, MessageInfo originalMessage, int prog);
Visual Basic
Function OnError(code As Integer, error As string, originalMessage As MessageInfo, prog As Integer) As void
Parameters 
Description 
int code 
the error code returned by the Server. See the asynchronous Send Message outcome messages on the text protocol documentation for a reference on the error codes that can be issued in response to a Send Message request. Note that code 39 is not used in this case. 
string error 
the error message describing the error, as received from the Server. 
MessageInfo originalMessage 
the original message sent to the server as it was supplied to the LSClient.SendMessage method. 
int prog 
the progressive number associated to the message as it was returned by the LSClient.SendMessage method.