我正在使用EWS,我想獲得一個會議的約會列表。交易所將會議定義爲具有與會者的約會。我目前做這個:我怎樣才能得到一個會議的清單?
var filter = new SearchFilter.SearchFilterCollection
{
//new SearchFilter.IsEqualTo(AppointmentSchema.IsMeeting, true),
new SearchFilter.IsGreaterThan(AppointmentSchema.Start, DateTime.Today.AddYears(-1)),
new SearchFilter.IsLessThan(AppointmentSchema.Start, DateTime.Today),
};
var results = service.FindItems(id, filter, view);
隨着IsMeeting
過濾評價說,它成功返回所有的約會,我就可以通過循環的結果,看到了IsMeeting
屬性設置正確。我只想得到預約會議。所以我加了註釋行,也試過:
new SearchFilter.IsEqualTo(AppointmentSchema.IsMeeting, true)
new SearchFilter.IsEqualTo(AppointmentSchema.IsMeeting, "true")
new SearchFilter.IsEqualTo(AppointmentSchema.IsMeeting, 1)
new SearchFilter.Exists(AppointmentSchema.IsMeeting)
然而,我還是得到此錯誤:The property can not be used with this type of restriction.
任何想法?
我正在使用Exchange 2010 SP2。 – Jaguir