Since Sue isn't a C# programmer, pardon me for jumping in here.
Never just use a property tag in the 0x80000000 range, it can vary from mail
store to mail store and from store provider to store provider. That
reference you are using to Fields(0x80F30003) is not correct.
For a PT_LONG property like the one you are trying to access in that
namespace you should get the property tag on the fly by using the
SafeMailItem.GetIDsFromNames() method. That returns a 32-bit int and you
then OR that result with the value for PT_LONG (0x0003).
In this case the retrieval of a valid property tag for that property would
look like this:
const int PT_LONG = 0x0003;
int tag =
safeMailItem.GetNamesFromIDs("{00062008-0000-0000-C000-000000000046}",
0x8542) | PT_LONG;
You can then retrieve that property.
If you want to remove it set it to empty.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Nikolas" wrote in message
...
I need to delete the one-off properties from the message that was sent from
Outlook 2003. These properties dont let Outlook 2007 use a form region to
open the message.
Is there a reason why I could not possibly delete a property even with
Redemption? Is there a concept of read only properties?
"Sue Mosher [MVP-Outlook]" wrote:
Sorry, but I have no expertise in writing C#, only VB/VBA and VBScript.
Why do you need to get rid of the property? I don't see how that would
affect the use of a form region.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx