ICQ


GetSearchString

Get indentification string for further notification searchings in history log

Call Method
[VB.NET]
   Function GetSearchString (NotificationID As String) As String
Parameters
   NotificationID
         Notification ID
Return value
         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