|
[VB.NET] | |
Sub SetSearchString
(NotificationID As String, SearchString As String)
|
|
NotificationID |
Notification ID |
SearchString |
|
VB.NET
Example |
Switch to language:
[C#] |
|
| 'Create personalizer object and Session object |
| Dim pers As New PersonalizerRef.Personalizer()
|
| Dim sess As New SessionRef.Session()
|
| Dim SessionID As
String = "" |
| Try |
| SessionID = pers.CreateSession("LogonName", "Password") |
| 'Create SMS notification object |
| Dim objSMS As New SMSRef.SMS()
|
| ' Create server notification object |
| Dim SMSNotifID As
String = sess.CreateSMSNotification(SessionID) |
| Dim NotificationSequenceNumber As
Long |
| NotificationSequenceNumber=GetNotificationSequenceNumber()+1 'using some user function |
| objSMS.SetSearchString(SMSNotifID,NotificationSequenceNumber) |
| ... |
| SaveNotificationSequenceNumber(objSMS.GetSearchString(SMSNotifID)) ' retrieve and save search string |
| objSMS.Release(SMSNotifID) |
| sess.Release(SessionID) |
| Catch e As Exception |
| 'Print exception message e.Message |
| sess.Release(SessionID) |
| End Try |