locked
EWS Managed API RRS feed

  • Question

  • Hi everybody,

    I'm currently testing the new EWS Managed API.

     I'd like to stamp my mails with GUID. I followed the description given in the 'Getting Started":

    ExtendedPropertyDefinition extendedPropertyDefinition = new ExtendedPropertyDefinition(

    yourPropertySetId,

    "MyProperty",

    MapiPropertyType.String);

     

    // Stamp the extended property on a message.

    message.ExtendedProperties.Add(extendedPropertyDefinition, "MyValue");

    But according to the API reference the ExtendedPropertyCollection doesnot offer an Add-method. The size of the colection is always 0. Since it is a readonly property no new ExtendedPropertyCollection can be allocated.

    Can anybody help me with that?

    Thx in advance
    Mike

    Wednesday, August 26, 2009 10:13 AM

Answers

  • Try message.SetExtendedProperty()
    David Sterling | Microsoft Exchange Web Services | http://www.microsoft.com/MSPress/books/10724.aspx
    • Marked as answer by Kim Brandl Thursday, August 27, 2009 4:56 PM
    Wednesday, August 26, 2009 1:07 PM