How to get the PR_ENTRYID value C#

X

xiahmi

Hi,

How can I get PR_ENTRYID using c# in outlook 2007 and
how do I possible load the mail using the enryId?

Please help me, I really got no idea on this.

Thanks
 
K

Ken Slovak - [MVP - Outlook]

You need an item reference to be able to read the item.EntryID property,
which is returned as a string. The item must have been saved for that or
EntryID will be null or empty. To open an item using an EntryID you use
NameSpace.GetItemFromID() and supply the EntryID and StoreID or a missing
value for StoreID.

You can easily find all of this sort of thing in the Object Browser, as well
as sample code. Try the Outlook VBA Object Browser. Also, this group is for
Outlook custom forms, so you might try posting to a more appropriate group.
 
X

xiahmi

Hi,

Sorry for posting it here, where should I be posting it, can you give me a
link? thanks

Thanks also for your answer, at least I have a reference now.
Thanks a lot
 
K

Ken Slovak - [MVP - Outlook]

Either microsoft.public.outlook.program_addins or
microsoft.public.outlook.program_vba would be appropriate for that sort of
question.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top