G
Guest
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.OlUserPropertyType.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
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.OlUserPropertyType.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