Microsoft Developer Network > 포럼 홈 > Visual Studio Tools for Office > Outlook object model - AppointmentItem.Copy returns MailItem object
질문하기질문하기
 

답변됨Outlook object model - AppointmentItem.Copy returns MailItem object

  • 2009년 7월 3일 금요일 오후 6:09dkavicki 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    I'm copying outlook items from source pst to destination pst. Not all of them but some based on their entryId's.
    I have discovered a problem when trying to copy AppointmentItems in Deleted Items folder in the source Pst.
    I issue: object obj = appointmentItem.Copy() and then inspect obj for the type. It turns out obj is not AppointmentItem  but MailItem. Also I find the copy being created in Drafts folder in the source pst.

    Would anybody have an idea why Copy method invoked on AppointmentItem returns MailItem? This is really weird and unexplainable to me. Tried googling for more than a day and couldn't find any article adressing my problem.
    Thanks

답변

  • 2009년 7월 11일 토요일 오후 3:35NicoleSayShape 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     답변됨
    I've met the same issue, after a long time study I found this is a by-design feature, you'll find the the MailItem contains a attachment which is exactly the AppointmentItem I just copy.Thus, if you complain about this, I thinks connect.com is a better than here.

    regards.

    Nico.

모든 응답

  • 2009년 7월 11일 토요일 오후 3:35NicoleSayShape 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     답변됨
    I've met the same issue, after a long time study I found this is a by-design feature, you'll find the the MailItem contains a attachment which is exactly the AppointmentItem I just copy.Thus, if you complain about this, I thinks connect.com is a better than here.

    regards.

    Nico.
  • 2009년 7월 13일 월요일 오전 7:23dkavicki 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Thanks for the reply. Yes , know that copied MailItem contains my AppointmentItem attachment. And this is how I left it with an explaination that this must be by design :)
    I have also found other item types (ContactItem, TaskItem, JournalItem) behave the same, or similar.
    I don't plain to complain about this but out of curiosity what is 'connect.com'? Typing it in the browser redirects me to Sony connect Europe. (Music downloads powered by Sony)