M
Michael Jennings
I'm new to the Outlook 2007 object model. I want to create and set some
custom properties to my outlook folders. eg I want to set a property like
'source url', which is of string type, that will enable me to find out
programmatically which folder belongs to which url. I think PropertyAccessor
has something to do with it. I tried the following code:-
string prop =
"http://schemas.microsoft.com/mapi/string/{5ae18700-583b-4e33-b0b8-bbcffc9ebd24}/siteUrl";
Folder folder = (Folder)tasksFolder.Folders.Add(folderName,
OlDefaultFolders.olFolderTasks);
folder.PropertyAccessor.SetProperty(prop, "http://www.microsoft.com");
It throws an exception - The property
"http://schemas.microsoft.com/mapi/string/{5ae18700-583b-4e33-b0b8-bbcffc9ebd24}/siteUrl"
does not support this operation.
Please help !!
custom properties to my outlook folders. eg I want to set a property like
'source url', which is of string type, that will enable me to find out
programmatically which folder belongs to which url. I think PropertyAccessor
has something to do with it. I tried the following code:-
string prop =
"http://schemas.microsoft.com/mapi/string/{5ae18700-583b-4e33-b0b8-bbcffc9ebd24}/siteUrl";
Folder folder = (Folder)tasksFolder.Folders.Add(folderName,
OlDefaultFolders.olFolderTasks);
folder.PropertyAccessor.SetProperty(prop, "http://www.microsoft.com");
It throws an exception - The property
"http://schemas.microsoft.com/mapi/string/{5ae18700-583b-4e33-b0b8-bbcffc9ebd24}/siteUrl"
does not support this operation.
Please help !!