|
[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 MSN notification |
| Dim objMSN As New MSNRef.MSN()
|
| 'Create server notification object |
| MSNNotifID = sess.CreateMSNNotification(SessionID) |
| objMSN.Logon(MSNNotifID, "012345", "Password") |
| Dim NotificationSequenceNumber As
Long |
| NotificationSequenceNumber=GetNotificationSequenceNumber()+1 ' using some user function |
| objMSN.SetSearchString(MSNNotifID,NotificationSequenceNumber) |
| ... |
| SaveNotificationSequenceNumber(objMSN.GetSearchString(MSNNotifID)) ' retrieve and save search string |
| objMSN.Release(MSNNotifID) |
| sess.Release(SessionID) |
| Catch e As Exception |
| 'Print exception message e.Message |
| sess.Release(SessionID) |
| End Try |