Defines constant values for the MessageProperties.MSG_TYPE message property.
Visual Basic syntaxPublic Enum MessageType
C# syntaxpublic enum MessageType
Members| Member name | Description | Value |
|---|---|---|
| NETWORK_STATUS_NOTIFICATION |
Identifies a QAnywhere system message used to notify QAnywhere client applications of network status changes. Network status changes apply to the device receiving the system message. Use MessageProperties.ADAPTERS, MessageProperties.RASNAMES, and MessageProperties.NETWORK_STATUS fields to identify new network status information. For more information, see System queue. |
14 |
| PUSH_NOTIFICATION |
Identifies a QAnywhere system message used to notify QAnywhere client applications of push notifications. If you use the on-demand qaagent policy, a typical response is to call QAManagerBase.TriggerSendReceive() to receive messages waiting with the central message server. For more information, see System queue. |
13 |
| REGULAR |
If no message type property exists then the message type is assumed to be REGULAR. This type of message is not treated specially by the message system. |
0 |
See also
ExampleThe following example shows the onSystemMessage method which is used to handle QAnywhere system messages. The message type is compared to MessageType.NETWORK_STATUS_NOTIFICATION.
private void onSystemMessage(QAMessage msg) {
QATextMessage t_msg;
MessageType msg_type;
String network_adapters;
String network_names;
String network_info;
t_msg = (QATextMessage)msg;
if(t_msg != null) {
// Evaluate message type.
msg_type = (MessageType)t_msg.GetIntProperty( MessageProperties.MSG_TYPE );
if(msg_type == MessageType.NETWORK_STATUS_NOTIFICATION) {
// Handle network status notification...
}
}
} |
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |
