EWS recurrence pattern name RRS feed

  • Question

  • Im checking for a particular recurrence type.  However after further testing the name is close but not the same as what Im expecting.

    Im currently getting "RelativeMonthlyPattern" instead of "RelativeMonthlyRecurrencePatternType"

    I inherited this code and so I didnt write this line. Im just testing against it because a bug came up.

    When would the name be one or the other?

    does this have to do with managed api vs api?

    or exchange server version?

    Microsoft.Exchange.WebServices.Data.Recurrence exchangeRecurrence;            

    string name = exchangeRecurrence.GetType().Name;             try {                 if ( name.Equals("RelativeMonthlyRecurrencePatternType"


    • Edited by owen gerig Friday, August 8, 2014 4:22 PM
    Friday, August 8, 2014 4:18 PM


  • RelativeMonthlyRecurrencePatternType is a WSDL type http://msdn.microsoft.com/en-us/library/office/jj190899(v=exchg.150).aspx so this has been generated as part of some code created to use the WSDL Proxy objects.

    Microsoft.Exchange.WebServices.Data.Recurrence is one of the EWS Managed API's types, the managed API is a client side library with its own types which aren't the same as the WSDL types (it generates and parses the SOAP request/response back to its own internal types) and they are not interchangeable.

    It maybe they have used both the Managed API and Proxycode in the same application as there are a few functions in EWS that haven't been included in the EWS Managed API (or they have upgraded the application to use the Managed API and just haven't rewritten everything).

    The easiest way to tell is have a look at the code that submits the request if it using the ExchangeService class then its the Managed API if its using the ExchangeServiceBinding class then it's proxy code.


    • Marked as answer by owen gerig Monday, August 11, 2014 12:48 PM
    Monday, August 11, 2014 3:55 AM