|
[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 Phone notification object |
| Dim objPhone As New PhoneRef.Phone()
|
| Dim PhoneNotifID As
String = sess.CreatePhoneNotification(SessionID) |
| Dim NotificationSequenceNumber As
Long |
| NotificationSequenceNumber=GetNotificationSequenceNumber()+1 ' using some user function |
| objPhone.SetSearchString(PhoneNotifID,NotificationSequenceNumber) |
| ... |
| SaveNotificationSequenceNumber(objPhone.GetSearchString(PhoneNotifID)) ' retrieve and save search string |
| objPhone.Release(PhoneNotifID) |
| sess.Release(SessionID) |
| Catch e As Exception |
| 'Print exception message e.Message |
| sess.Release(SessionID) |
| End Try |