消息日期属性的模式名称

时间:2017-07-25 07:07:12

标签: c# outlook vsto outlook-addin

我正在尝试通过PropertyAccessor读取和写入消息日期(已发送/已接收),但无法弄清楚该属性的模式名称是什么,甚至不确定我是否正确传递了schema参数

什么是正确的架构名称?
如何正确传递GetProperty()SetProperty()的参数? 是否有某个地方的每个房产的可用名称列表? 有没有办法获得/设置没有模式的属性,只需使用属性名称?

object prop = item.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x10130102"); // I know 0x10130102 is not correct but don't know what the correct one is.

item.PropertyAccessor.SetProperty("http://schemas.microsoft.com/mapi/proptag/0x10130102", DateTime.Now.ToFileTimeUtc());

2 个答案:

答案 0 :(得分:3)

这是完整的电子邮件属性列表( BOLD 中可能的候选人):

" PR_MESSAGE_CLASS" " http://schemas.microsoft.com/mapi/proptag/0x001A001E"

" PR_SUBJECT" " http://schemas.microsoft.com/mapi/proptag/0x0037001E"

" PR_CLIENT_SUBMIT_TIME" " http://schemas.microsoft.com/mapi/proptag/0x00390040"

" PR_SENT_REPRESENTING_SEARCH_KEY" " http://schemas.microsoft.com/mapi/proptag/0x003B0102"

" PR_SUBJECT_PREFIX PT_STRING8" " http://schemas.microsoft.com/mapi/proptag/0x003D001E"

" PR_RECEIVED_BY_ENTRYID" " http://schemas.microsoft.com/mapi/proptag/0x003F0102"

" PR_RECEIVED_BY_NAME" " http://schemas.microsoft.com/mapi/proptag/0x0040001E"

" PR_SENT_REPRESENTING_ENTRYID" propertyAccessor.GetProperty(" http://schemas.microsoft.com/mapi/proptag/0x00410102"

" PR_SENT_REPRESENTING_NAME" " http://schemas.microsoft.com/mapi/proptag/0x0042001E"

" PR_REPLY_RECIPIENT_ENTRIES" " http://schemas.microsoft.com/mapi/proptag/0x004F0102"

" PR_REPLY_RECIPIENT_NAMES" " http://schemas.microsoft.com/mapi/proptag/0x0050001E"

" PR_RECEIVED_BY_SEARCH_KEY" " http://schemas.microsoft.com/mapi/proptag/0x00510102"

" PR_SENT_REPRESENTING_ADDRTYPE" " http://schemas.microsoft.com/mapi/proptag/0x0064001E"

" PR_SENT_REPRESENTING_EMAIL_ADDRESS" " http://schemas.microsoft.com/mapi/proptag/0x0065001E"

" PR_CONVERSATION_TOPIC" " http://schemas.microsoft.com/mapi/proptag/0x0070001E"

" PR_CONVERSATION_INDEX" " http://schemas.microsoft.com/mapi/proptag/0x00710102"

" PR_RECEIVED_BY_ADDRTYPE" " http://schemas.microsoft.com/mapi/proptag/0x0075001E"

" PR_RECEIVED_BY_EMAIL_ADDRESS" " http://schemas.microsoft.com/mapi/proptag/0x0076001E"

" PR_TRANSPORT_MESSAGE_HEADERS" " http://schemas.microsoft.com/mapi/proptag/0x007D001E"

" PR_SENDER_ENTRYID" " http://schemas.microsoft.com/mapi/proptag/0x0C190102"

" PR_SENDER_NAME" " http://schemas.microsoft.com/mapi/proptag/0x0C1A001E"

" PR_SENDER_SEARCH_KEY" " http://schemas.microsoft.com/mapi/proptag/0x0C1D0102"

" PR_SENDER_ADDRTYPE" " http://schemas.microsoft.com/mapi/proptag/0x0C1E001E"

" PR_SENDER_EMAIL_ADDRESS" " http://schemas.microsoft.com/mapi/proptag/0x0C1F001E"

" PR_DISPLAY_BCC" " http://schemas.microsoft.com/mapi/proptag/0x0E02001E"

" PR_DISPLAY_CC" " http://schemas.microsoft.com/mapi/proptag/0x0E03001E"

" PR_DISPLAY_TO" " http://schemas.microsoft.com/mapi/proptag/0x0E04001E"

" PR_MESSAGE_DELIVERY_TIME" " http://schemas.microsoft.com/mapi/proptag/0x0E060040"

" PR_MESSAGE_FLAGS" " http://schemas.microsoft.com/mapi/proptag/0x0E070003"

" PR_MESSAGE_SIZE" " http://schemas.microsoft.com/mapi/proptag/0x0E080003"

" PR_PARENT_ENTRYID" " http://schemas.microsoft.com/mapi/proptag/0x0E090102"

" PR_MESSAGE_RECIPIENTS" " http://schemas.microsoft.com/mapi/proptag/0x0E12000D"

" PR_MESSAGE_ATTACHMENTS" " http://schemas.microsoft.com/mapi/proptag/0x0E13000D"

" PR_HASATTACH" " http://schemas.microsoft.com/mapi/proptag/0x0E1B000B"

" PR_NORMALIZED_SUBJECT" " http://schemas.microsoft.com/mapi/proptag/0x0E1D001E"

" PR_RTF_IN_SYNC" " http://schemas.microsoft.com/mapi/proptag/0x0E1F000B"

" PR_PRIMARY_SEND_ACCT" " http://schemas.microsoft.com/mapi/proptag/0x0E28001E"

" PR_NEXT_SEND_ACCT" " http://schemas.microsoft.com/mapi/proptag/0x0E29001E"

" PR_ACCESS" " http://schemas.microsoft.com/mapi/proptag/0x0FF40003"

" PR_ACCESS_LEVEL" " http://schemas.microsoft.com/mapi/proptag/0x0FF70003"

" PR_MAPPING_SIGNATURE" " http://schemas.microsoft.com/mapi/proptag/0x0FF80102"

" PR_RECORD_KEY" " http://schemas.microsoft.com/mapi/proptag/0x0FF90102"

" PR_STORE_RECORD_KEY" " http://schemas.microsoft.com/mapi/proptag/0x0FFA0102"

" PR_STORE_ENTRYID" " http://schemas.microsoft.com/mapi/proptag/0x0FFB0102"

" PR_OBJECT_TYPE" " http://schemas.microsoft.com/mapi/proptag/0x0FFE0003"

" PR_ENTRYID" " http://schemas.microsoft.com/mapi/proptag/0x0FFF0102"

" PR_BODY" " http://schemas.microsoft.com/mapi/proptag/0x1000001E"

" PR_RTF_COMPRESSED" " http://schemas.microsoft.com/mapi/proptag/0x10090102"

" PR_HTML" " http://schemas.microsoft.com/mapi/proptag/0x10130102"

" PR_INTERNET_MESSAGE_ID" " http://schemas.microsoft.com/mapi/proptag/0x1035001E"

" PR_LIST_UNSUBSCRIBE" " http://schemas.microsoft.com/mapi/proptag/0x1045001E"

" N / A" " http://schemas.microsoft.com/mapi/proptag/0x1046001E"

" PR_CREATION_TIME" " http://schemas.microsoft.com/mapi/proptag/0x30070040"

" PR_LAST_MODIFICATION_TIME" " http://schemas.microsoft.com/mapi/proptag/0x30080040"

" PR_SEARCH_KEY" " http://schemas.microsoft.com/mapi/proptag/0x300B0102"

" PR_STORE_SUPPORT_MASK" " http://schemas.microsoft.com/mapi/proptag/0x340D0003"

" N / A" " http://schemas.microsoft.com/mapi/proptag/0x340F0003"

" PR_MDB_PROVIDER" " http://schemas.microsoft.com/mapi/proptag/0x34140102"

" PR_INTERNET_CPID" " http://schemas.microsoft.com/mapi/proptag/0x3FDE0003"

"副作用" " http://schemas.microsoft.com/mapi/proptag/0x80050003"

" InetAcctID" " http://schemas.microsoft.com/mapi/proptag/0x802A001E"

" InetAcctName" " http://schemas.microsoft.com/mapi/proptag/0x804F001E"

" RemoteEID" " http://schemas.microsoft.com/mapi/proptag/0x80660102"

&#34 X-RCPT到" " http://schemas.microsoft.com/mapi/proptag/0x80AD001E"

答案 1 :(得分:2)

使用OutlookSpy查看包含您所在属性的消息 - 选择消息,单击OutlookSpy功能区上的IMessage按钮,选择属性,查看DASL编辑bx。