|
[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 Mail notification proxy object |
| MailRef.Mail objMail = new MailRef.Mail()
; |
| //Create server notification object |
| string MailNotifID = sess.CreateMailNotification(SessionID); |
| int NotificationSequenceNumber; |
| NotificationSequenceNumber=GetNotificationSequenceNumber()+1
;
// using some user function |
| objMail.SetSearchString(MailNotifID,NotificationSequenceNumber) ; |
| ...; |
| SaveNotificationSequenceNumber(objMail.GetSearchString(MailNotifID))
;
// retrieve and save search string |
| objMail.Release(MailNotifID); |
| sess.Release(SessionID); |
| } |
| catch(Exception e){ |
| //Print exception message e.Message |
| sess.Release(SessionID); |
| } |