如何在Outlook.MailItems中搜索UserProperty的名称,而不是其值 [英] How to search for the name of the UserProperty in Outlook.MailItems, not their value

查看:129
本文介绍了如何在Outlook.MailItems中搜索UserProperty的名称,而不是其值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

背景:

当前,我正在搜索Outlook.MailItems,它们的UserProperty(在此为"IsProcessed")等于其propertyValue(在此为true或false).

Currently I am searching Outlook.MailItems where their UserProperty (here, "IsProcessed") is equal to its propertyValue (here, true or false).

string propertyValue = "true";
string filter = "http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/IsProcessed LIKE \'%" + propertyValue + "%\'";

我在AdvancedSearch 链接中使用了此筛选器字符串记录

I am using this filter string in advancedSearch link to doc

问题声明:

我的用例是搜索这些mailItem是否分配了任何UserProperty,其中UserProperty的名称="IsProcessed".

My usecase is to search if these mailItems have any UserProperty assigned where name of UserProperty = "IsProcessed".

有什么办法可以使用类似的DASL过滤器字符串吗?

Is there any way to do so using similar DASL filter string?

谢谢.

推荐答案

否,您需要了解GUID. OOM中的所有使用属性都使用{00020329-0000-0000-C000-000000000046}(即PS_PUBLIC_STRINGS)的GUID.

No, you need to know the GUID. All use properties in OOM use the GUID of {00020329-0000-0000-C000-000000000046} (which is PS_PUBLIC_STRINGS).

使用 OutlookSpy 查看现有消息(选择消息,单击IMessage按钮)-当您选择一个命名属性(强制),OutlookSpy将显示其GUID,ID和DASL名称.

Take a look at existing messages with OutlookSpy (select the message, click IMessage button) - when you select a named property (bolded) OutlookSpy will show its GUID, id, and the DASL name.

这篇关于如何在Outlook.MailItems中搜索UserProperty的名称,而不是其值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆