Problem With UserProperty
-
22 Mei 2009 9:37Problem With UserProperty
Hi, I use the following code inordre to send an appointment to required attendies.
OutLook.Application app = new Microsoft.Office.Interop.Outlook.Application();
OutLook.AppointmentItem appointment = (OutLook.AppointmentItem)app.CreateItem(OlItemType.olAppointmentItem);
and then for appointment object I set the following properties
appointment.Body = "This appointment is created for testing purpose only";
appointment.Start = DateTime.Now;
appointment.End = DateTime.Now.AddHours(3);
appointment.MeetingStatus = MeetingStatus.olMeeting;
OutLook.UserProperty ab = appointment.UserProperties.Add("ID", OlUserPropertyType.olInteger,false, Type.Missing);
ab.Value = 123;
appointment.RequiredAttendees = "somuuser@somedomain.com";
Now, After sending the message then from the required attendee's workstation if I try to read the added User property of the appointmenmt value, then it is showing null value.
But, if I save the appointment I am able to see the UserProperty value.
But from another system it is not showing any value.
How can I fix this problem?
My intention is I want to insert my Id to each appointment.- Dipindahkan oleh nobugzMVP 22 Mei 2009 11:57 not a bcl q (From:.NET Base Class Library)
Semua Balasan
-
02 Mei 2012 5:45Pemilik
Needs more info about MS tools and tech. Thanks!Ed Price (a.k.a User Ed), SQL Server Experience Program Manager (Blog, Twitter, Wiki)
- Disarankan sebagai Jawaban oleh Ed Price - MSFTMicrosoft Employee, Owner 02 Mei 2012 5:45
- Ditandai sebagai Jawaban oleh Ed Price - MSFTMicrosoft Employee, Owner 02 Mei 2012 5:45