How to restrict all outlook appointments (including recurring) by property value using C# -


how restrict outlook appointments (including recurring) property value using c#. use filter = "@sql=(http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-c000-000000000046}/testname not null)" (where testname - property name) , set calendaritems.includerecurrences = true; simple appointments results

to retrieve outlook appointment items folder meets predefined condition, need sort items in ascending order , set includerecurrences true. not catch recurrent appointments if don’t before using restrict method.

    item = resultitems.getfirst();         {        if (item != null)        {            if (item outlook._appointmentitem)            {                counter++;                appitem = item outlook._appointmentitem;                strbuilder.appendline("#" + counter.tostring() +                                      "\tstart: " + appitem.start.tostring() +                                      "\tsubject: " + appitem.subject +                                      "\tlocation: " + appitem.location);            }            marshal.releasecomobject(item);            item = resultitems.getnext();        }    }    while (item != null); 

you may find following articles helpful:


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

json - Gson().fromJson(jsonResult, Myobject.class) return values in 0's -