1
我正在使用下面的代碼從我的收件箱使用ews讀取郵件。我能夠讀取主題等,但如何讀取自定義字段值?如何讀取自定義字段值
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
service.Credentials = new NetworkCredential("username", "password", "domain");
service.Url = new Uri("https://server/ews/exchange.asmx");
FindItemsResults<Item> findResults = service.FindItems(WellKnownFolderName.Inbox, new ItemView(100));
foreach (Item item in findResults.Items)
{
string str=item.Subject;
foreach (ExtendedProperty extendedProperty in item.ExtendedProperties)
{ }
}
我試過item.ExtendedProperties。但伯爵總是零。任何人都可以告訴我如何閱讀自定義字段值?
在此先感謝