Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Wed, 30 Apr 2008 11:09:40 -0500,    group: microsoft.public.exchange.development        back       


Problem Accessing Custom Attributes for a Room Mailbox   
I am writing an Outlook add-in in which I need to access custom attributes 
in a room (resource) mailbox.  Through the Exchange management console, I 
have added custom attributes to a particiular room mailbox.  When I run 
mfcmapi (the MAPI Editor) against my Exchange server, I can see the two 
attributes (properties) I added.  For example the first one shows this 
information:

Named Prop GUID: {48862A09-F786-0114-0283-000000000000}
Property Name(s): PR_EMS_AB_EXTENSION_ATTRIBUTE_1, 
PR_EMS_AB_EXTENSION_ATTRIBUTE_1_A
Type: PT_STRING8
Tag: 0x802D001E
Named Prop Name ID: 65575=0x10027
Value: Attribute1          (a string)

In my outlook add-in, I get an ExchangeUser (UserR) for this mailbox and I 
get the propertyaccessor:

      Outlook.PropertyAccessor pa = UserR.PropertyAccessor;

I am able to retrieve all the built-in properties of this mailbox (for 
example the business telephone number) by using calls like:

      private const string BUSINESS_TELEPHONE_NUMBER
                         http://schemas.microsoft.com/mapi/proptag/0x3A08001E

      string sBusPhone = (string) pa.GetProperty(BUSINESS_TELEPHONE);

But I cannot seem to get the custom attributes.  I cannot get them through 
their proptag because their tags are greater than 0x80000000.  So, I am 
trying to retrieve them using this call:

       private const string CUSTOM_ATTRIBUTE_1 
http://schemas.microsoft.com/mapi/string/
        {48862A09-F786-0114-0283-000000000000}/PR_EMS_AB_EXTENSION_ATTRIBUTE_1

       string sCustomAtt = (string) pa.GetProperty(CUSTOM_ATTRIBUTE_1);

This call throws an exception.

Does anyone know how to access these properties?

Thanks,

Mike
date: Wed, 30 Apr 2008 11:09:40 -0500   author:   Michael

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us