|
[VB.NET] | |
Sub SetSearchString
(NotificationID As String, SearchString As String)
|
|
NotificationID |
Notification ID |
SearchString |
Any text |
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 NumPager notification object |
| Dim objNumPager As New NumPagerRef.NumPager()
|
| ' Create server notification object |
| Dim NumPagerNotifID As
String = sess.CreateNumPagerNotification(SessionID) |
| Dim NotificationSequenceNumber As
Long |
| NotificationSequenceNumber=GetNotificationSequenceNumber()+1 'using some user function |
| objNumPager.SetSearchString(NumPagerNotifID,NotificationSequenceNumber) |
| ... |
| SaveNotificationSequenceNumber(objNumPager.GetSearchString(NumPagerNotifID)) ' retrieve and save search string |
| objNumPager.Release(NumPagerNotifID) |
| sess.Release(SessionID) |
| Catch e As Exception |
| 'Print exception message e.Message |
| sess.Release(SessionID) |
| End Try |