|
| [VB.NET] | |
| Function GetSearchString
(NotificationID As String)
As
String |
|
| NotificationID |
| Notification ID |
|
| Search string value |
| 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 ICQ notification |
| | Dim objICQ As New ICQRef.ICQ()
|
| | 'Create server notification object |
| | ICQNotifID = sess.CreateICQNotification(SessionID) |
| | objICQ.Logon(ICQNotifID, "012345", "Password") |
| | Dim NotificationSequenceNumber As
Long |
| | NotificationSequenceNumber=GetNotificationSequenceNumber()+1 ' using some user function |
| | objICQ.SetSearchString(ICQNotifID,NotificationSequenceNumber) |
| | ... |
| | SaveNotificationSequenceNumber(objICQ.GetSearchString(ICQNotifID)) 'retrieve and save search string |
| | objICQ.Release(ICQNotifID) |
| | sess.Release(SessionID) |
| | Catch e As Exception |
| | 'Print exception message e.Message |
| | sess.Release(SessionID) |
| | End Try |