Tag: searchfiltercollection

searchFilter与EWS FindItems方法调用无法正常工作

我使用SearchFilter集合来限制使用EWS将请求返回到Exchange 2010邮箱的电子邮件。 我没有问题连接到服务,并打开邮箱。 问题是我的searchFilter被忽略,所有电子邮件都被请求返回给EWS。 这是我的代码: static void Main(string[] args) { ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack; //creates an object that will represent the desired mailbox Mailbox mb = new Mailbox(@”bbtest@bocuk.local”); // Find all items where the body contains “move reports”. //string qstring = “Body:\”move reports\””; // Identify the item properties to return. //view.PropertySet = new PropertySet(BasePropertySet.IdOnly, //ItemSchema.Subject); //creates […]