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