如何使用ews-java-api获取共享日历

时间:2016-11-17 05:27:08

标签: java calendar exchangewebservices shared

FindItemsResults<Item> fiResults = fFolders.getFolders().get(0).findItems(cntSearch, iv);

for (Item item : fiResults.getItems()) {
    try {
        Object wLinkAddressBookEID = null;
        item.tryGetProperty(extendedPropertyDefinition,(OutParam<Object>)wLinkAddressBookEID);
        byte[] ssStoreID = (byte[]) wLinkAddressBookEID;

例外:

  

java.lang.ClassCastException:   microsoft.exchange.webservices.data.property.definition.ExtendedPropertyDefinition   无法施展   microsoft.exchange.webservices.data.property.definition.PropertyDefinition     在   microsoft.exchange.webservices.data.core.service.ServiceObject.tryGetProperty(ServiceObject.java:455)     在   microsoft.exchange.webservices.data.core.service.ServiceObject.tryGetProperty(ServiceObject.java:441)

0 个答案:

没有答案