문제

I am new to Outlook object model. I want to trap some events like selectionchange events etc. What I found that in the selection object it returns the system.object. I have to do type checking for each item type. Not sure if there is any better way to do this.

I don't want to do type checking every time.

Ashwin

도움이 되었습니까?

해결책

As far as I know there is no base class for outlook message item

Check this out http://outlookitemwrapper.codeplex.com/.

You can use this wrapper. Hope this would be helpful

다른 팁

Why not use late binding and check the Class property? Every Outlook object exposes it.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top