INFO: Accessing Custom Attributes of RecipientsLast reviewed: January 2, 1998Article ID: Q178553 |
The information in this article applies to:
SUMMARYThe following table contains the property identifiers and property tags you can use to access the values of the Custom Attributes of Recipients on Microsoft Exchange Server.
Custom Attribute Property ID Property Tag ---------------- ----------- ------------ 1 0x802D 0x802D001E 2 0x802E 0x802E001E 3 0x802F 0x802F001E 4 0x8030 0x8030001E 5 0x8031 0x8031001E 6 0x8032 0x8032001E 7 0x8033 0x8033001E 8 0x8034 0x8034001E 9 0x8035 0x8035001E 10 0x8036 0x8036001E MORE INFORMATIONCollaboration Data Objects (CDO) To retrieve the property using Collaboration Data Objects (CDO) (formerly known as Active Messaging), use the Fields collection of the AddressEntry property on the Recipient object. Here is the syntax:
objRecip.AddressEntry.Fields(&H########).ValueFor example, the following code displays the value of Custom Attribute 7 in a message box. (This code assumes the variable objRecip points to a resolved Recipient object on Microsoft Exchange Server.)
MsgBox objRecip.AddressEntry.Fields(&H8033001E).Value Extended MAPITo retrieve the property using Extended MAPI, use the IMAPIProp::GetProps() method on the IMailUser object, or the HrGetOneProp() function. You must ensure that the recipient has been resolved to the Microsoft Exchange Server Global Address List.
REFERENCESSee the topics "Extension-Attribute-#" (where # is the number of the attribute) in the Microsoft Developer Network Library (MSDN). This topic can be found in the Microsoft Exchange Server Programmer's Reference.
|
Additional query words: ActMsg OleMsg
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |