//+---------------------------------------------------------------------------
 //
 //  function:   EnumerateFaxSentItemMessages
 //
 //  Synopsis:   Enumerates the Fax Messages in the Sent Items folder
 //
 //  Arguments:  [objOutgoingMsgIterator] - Fax SentItems Message Iterator Object
 //
 //  Returns:    bool - true if the function was successful
 //
 //----------------------------------------------------------------------------
 static bool EnumerateFaxSentItemMessages(IFaxOutgoingMessageIterator objOutgoingMsgIterator)
 {
     //check for NULL
     if (objOutgoingMsgIterator == null)
     {
         System.Console.WriteLine("EnumerateFaxSentItemMessages: Parameter passed is NULL");
         return(false);
     }
     System.Console.WriteLine("Enumerating SentItems Messages ...");
     objOutgoingMsgIterator.MoveFirst();
     while (objOutgoingMsgIterator.AtEOF == false)
     {
         IFaxOutgoingMessage2 objFaxOutgoingMsg = (IFaxOutgoingMessage2)objOutgoingMsgIterator.Message;
         System.Console.WriteLine("SentItems Msg Id: " + objFaxOutgoingMsg.Id);
         objOutgoingMsgIterator.MoveNext();
     }
     return(true);
 }
Exemplo n.º 2
0
 //+---------------------------------------------------------------------------
 //
 //  function:   EnumerateFaxSentItemMessages
 //
 //  Synopsis:   Enumerates the Fax Messages in the Sent Items folder
 //
 //  Arguments:  [objOutgoingMsgIterator] - Fax SentItems Message Iterator Object
 //
 //  Returns:    bool - true if the function was successful
 //
 //----------------------------------------------------------------------------
 static bool EnumerateFaxSentItemMessages(IFaxOutgoingMessageIterator objOutgoingMsgIterator)
 {
     //check for NULL
                 if (objOutgoingMsgIterator == null)
                 {
                         System.Console.WriteLine("EnumerateFaxSentItemMessages: Parameter passed is NULL");
                         return false;
                 }
                 System.Console.WriteLine("Enumerating SentItems Messages ...");
                 objOutgoingMsgIterator.MoveFirst();
                 while (objOutgoingMsgIterator.AtEOF == false)
                 {
                         IFaxOutgoingMessage2 objFaxOutgoingMsg = (IFaxOutgoingMessage2) objOutgoingMsgIterator.Message;
                         System.Console.WriteLine("SentItems Msg Id: " + objFaxOutgoingMsg.Id);
                         objOutgoingMsgIterator.MoveNext();
                 }
                 return true;
 }