none
No folder description property? RRS feed

All replies

  • Bertrand,

    The description property is not directly accessible from EWS or EWS Managed API. You can access this property by specifying the extended property for PidTagComment. Here is small example that should help you get started.

    ExtendedPropertyDefinition Description = new ExtendedPropertyDefinition(0x3004, MapiPropertyType.String);
    PropertySet propset = new PropertySet(BasePropertySet.FirstClassProperties, Description);
    Folder myFolder = Folder.Bind(service, folderId, propset);
    myFolder.Load(propset);

    That was just a small piece of the code, you'll need to establish your ExchangeService object and determine the folderId for the folder you are working with.

    Once you have the myFolder loaded you can access the ExtendedProperties collection to look at the value. You can also set a new value for this property and then update it with something like this:

    myFolder.ExtendedProperties[0].Value = "New value";
    myFolder.Update();

    I hope this helps.


    --- Bob --- Microsoft Exchange SDK

    Tuesday, April 1, 2014 8:52 PM