|
| [C#] | |
| String
GetSearchString
(String NotificationID)
|
|
| NotificationID |
| Notification ID |
|
| Search string value |
|
| | //Create personalizer object and Session object |
| | PersonalizerRef.Personalizer pers = new PersonalizerRef.Personalizer()
; |
| | SessionRef.Session sess = new SessionRef.Session()
; |
| | string SessionID = ""; |
| | try{ |
| | SessionID = pers.CreateSession("LogonName", "Password"); |
| | //Create MSN notification |
| | MSNRef.MSN objMSN = new MSNRef.MSN()
; |
| | //Create server notification object |
| | MSNNotifID = sess.CreateMSNNotification(SessionID); |
| | objMSN.Logon(MSNNotifID, "012345", "Password"); |
| | int NotificationSequenceNumber; |
| | 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(Exception e){ |
| | //Print exception message e.Message |
| | sess.Release(SessionID); |
| | } |