我有使用EWS與Exchange Server 2013在這裏裝載MimeContent財產的問題就是我的工作:無法在Exchange Server通過EWS加載MimeContent 2013
var propertySet = new PropertySet{
ItemSchema.Subject,
ItemSchema.TextBody,
ItemSchema.DateTimeCreated,
ItemSchema.LastModifiedTime
};
var item = Item.Bind(mailbox.ExchangeServiceInstance, itemId, propertySet);
郵箱,權限,PullSubscription & ExchangeService是建立和工作,'itemId'是正確的,現有的。此代碼有效,我可以訪問加載的屬性。
但當我嘗試之後它加載MimeContent,我得到一個錯誤:
var binaries = new PropertySet(BasePropertySet.IdOnly, ItemSchema.MimeContent);
item.Load(binaries);
我得到的例外是:
'Microsoft.Exchange.WebServices.Data.ServiceResponseException' occurred in Microsoft.Exchange.WebServices.dll
A referenced period is missing.
我不能谷歌發現任何類似的問題此例外與EWS相關,或與加載MimeContent相似的問題。我一直試圖弄清楚自己,但任何人都可以給我一個暗示在哪裏挖?
如果在原始屬性集(綁定時使用的)中包含「ItemSchema.MimeContent」,會發生什麼? –
@YacoubMassad不幸的是,同樣的事情。 –