A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

C# ItemProperties not getting saved



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old July 23rd 07, 01:28 PM posted to microsoft.public.outlook.program_addins
Kulvinder
external usenet poster
 
Posts: 7
Default C# ItemProperties not getting saved

Hi,

I am trying to insert an Itemproperty in the Outlook Appointment item as
follows :

Outlook.ItemProperty olItemProperty = _olEvent.ItemProperties["MyKey"];

//create new property if the same doesn't exists
if (olItemProperty == null)
{
olItemProperty = _olEvent.ItemProperties.Add("MyKey"),
Microsoft.Office.Interop.Outlook.OlUserPropertyTyp e.olText, false, null);
}

Actually, the problem is that when i save the appointment, the ItemProperty
i added doesnt remain in the Item. It seems to get lost. Can anyone tell me
what could be the reason ?

I posted the same a Microsoft VSTO blogs where Sue Mosher told me that as
per "Ken Slovak", the item must be passed as using "ref" keyword. Why ?

Ken,
Can you please reply on this ? The same code is working on the other
machines i have. Is there any way to debug this problem ?

Regards
Kulvinder Singh
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sent messages are not being saved i_takeuti Outlook Express 2 April 18th 07 07:06 PM
Sent messages are not being saved [email protected] Outlook Express 3 April 13th 07 02:48 AM
Saved .eml files SandyD Outlook Express 6 March 2nd 07 07:56 PM
Saved eml files Star Harbor Outlook Express 6 August 24th 06 09:13 PM
Saved Sent Mail genie56 Outlook - General Queries 3 August 6th 06 07:14 PM


All times are GMT +1. The time now is 09:12 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.