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: Tue, 8 Apr 2008 10:07:50 +0100,    group: microsoft.public.exchange.development        back       


Next problem - "wrong" add method available...   
OK, the next problem I have is adding a property.

According to this - 
http://msdn2.microsoft.com/en-us/library/ms527518(EXCHG.10).aspx - there are 
two methods for Fields.Add. Ideally I would want to use the second (Proptag 
and value) as I have these. But only the first is available to me in C#. I'm 
not sure what to fill in though. The Property I am trying to add 
(PR_EFORMS_LOCALE_ID) doesn't seem to have a "name" - I added this item 
using MFCMapi then squirted out the various fields in my application to see 
what it is set as, and "Name" is empty. I can get the class and the value 
but not sure what the PropSetID would be - there isn't a property on the 
Field object for this, only ID. using "ID", I fed it the below:

_oFields.Add("PR_EFORMS_LOCALE_ID", 6, 1033, 1072234499);

or

_oFields.Add(""", 6, 1033, 1072234499);

But both give an error of E_INVALIDARG(80070057).


Any idea how I can either feed in the right data (or alternatively access 
the other method)? According to the MFCMAPI screen,  the property tag is 
0x3FE90003, Property ID is 0x3FE9, type is PT_LONG, Property Name is 
PR_EFORMS_LOCALE_ID (), Named property kind is MNID_ID, and the named 
property guid is {00020328-0000-0000-C000-000000000046} = PS_MAPI.

Ta.
date: Tue, 8 Apr 2008 10:07:50 +0100   author:   JamesB

Re: Next problem - "wrong" add method available...   
"JamesB"  wrote in message 
news:47fb35a0$0$26088$db0fefd9@news.zen.co.uk...
> OK, the next problem I have is adding a property.
>
> According to this - 
> http://msdn2.microsoft.com/en-us/library/ms527518(EXCHG.10).aspx - there 
> are two methods for Fields.Add. Ideally I would want to use the second 
> (Proptag and value) as I have these. But only the first is available to me 
> in C#. I'm not sure what to fill in though. The Property I am trying to 
> add (PR_EFORMS_LOCALE_ID) doesn't seem to have a "name" - I added this 
> item using MFCMapi then squirted out the various fields in my application 
> to see what it is set as, and "Name" is empty. I can get the class and the 
> value but not sure what the PropSetID would be - there isn't a property on 
> the Field object for this, only ID. using "ID", I fed it the below:
>
> _oFields.Add("PR_EFORMS_LOCALE_ID", 6, 1033, 1072234499);
>
> or
>
> _oFields.Add(""", 6, 1033, 1072234499);
>
> But both give an error of E_INVALIDARG(80070057).
>
>
> Any idea how I can either feed in the right data (or alternatively access 
> the other method)? According to the MFCMAPI screen,  the property tag is 
> 0x3FE90003, Property ID is 0x3FE9, type is PT_LONG, Property Name is 
> PR_EFORMS_LOCALE_ID (), Named property kind is MNID_ID, and the named 
> property guid is {00020328-0000-0000-C000-000000000046} = PS_MAPI.
>

A little further info - I tried this:

_oFields.Add("0x3FE90003", 6, 1033, "0002032800000000C000000000000046");

Doesn't give an error now, which is nice, but equally it doesn't seem to 
have created the property!
date: Tue, 8 Apr 2008 11:17:58 +0100   author:   JamesB

Re: Next problem - "wrong" add method available...   
"JamesB"  wrote in message 
news:47fb4610$0$10639$fa0fcedb@news.zen.co.uk...
>
> "JamesB"  wrote in message 
> news:47fb35a0$0$26088$db0fefd9@news.zen.co.uk...
>> OK, the next problem I have is adding a property.
>>
>> According to this - 
>> http://msdn2.microsoft.com/en-us/library/ms527518(EXCHG.10).aspx - there 
>> are two methods for Fields.Add. Ideally I would want to use the second 
>> (Proptag and value) as I have these. But only the first is available to 
>> me in C#. I'm not sure what to fill in though. The Property I am trying 
>> to add (PR_EFORMS_LOCALE_ID) doesn't seem to have a "name" - I added this 
>> item using MFCMapi then squirted out the various fields in my application 
>> to see what it is set as, and "Name" is empty. I can get the class and 
>> the value but not sure what the PropSetID would be - there isn't a 
>> property on the Field object for this, only ID. using "ID", I fed it the 
>> below:
>>
>> _oFields.Add("PR_EFORMS_LOCALE_ID", 6, 1033, 1072234499);
>>
>> or
>>
>> _oFields.Add(""", 6, 1033, 1072234499);
>>
>> But both give an error of E_INVALIDARG(80070057).
>>
>>
>> Any idea how I can either feed in the right data (or alternatively access 
>> the other method)? According to the MFCMAPI screen,  the property tag is 
>> 0x3FE90003, Property ID is 0x3FE9, type is PT_LONG, Property Name is 
>> PR_EFORMS_LOCALE_ID (), Named property kind is MNID_ID, and the named 
>> property guid is {00020328-0000-0000-C000-000000000046} = PS_MAPI.
>>
>
> A little further info - I tried this:
>
> _oFields.Add("0x3FE90003", 6, 1033, "0002032800000000C000000000000046");
>
> Doesn't give an error now, which is nice, but equally it doesn't seem to 
> have created the property!
>

More info - tried the "Update" method. But this gives an error too; 
MAPI_E_NO_SUPPORT (80040102)
date: Wed, 9 Apr 2008 14:59:45 +0100   author:   JamesB

Re: Next problem - "wrong" add method available...   
See http://www.cdolive.com/cdo10.htm

-- 
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool
-
"JamesB"  wrote in message 
news:47fccb8a$0$26074$db0fefd9@news.zen.co.uk...
>
> "JamesB"  wrote in message 
> news:47fb4610$0$10639$fa0fcedb@news.zen.co.uk...
>>
>> "JamesB"  wrote in message 
>> news:47fb35a0$0$26088$db0fefd9@news.zen.co.uk...
>>> OK, the next problem I have is adding a property.
>>>
>>> According to this - 
>>> http://msdn2.microsoft.com/en-us/library/ms527518(EXCHG.10).aspx - there 
>>> are two methods for Fields.Add. Ideally I would want to use the second 
>>> (Proptag and value) as I have these. But only the first is available to 
>>> me in C#. I'm not sure what to fill in though. The Property I am trying 
>>> to add (PR_EFORMS_LOCALE_ID) doesn't seem to have a "name" - I added 
>>> this item using MFCMapi then squirted out the various fields in my 
>>> application to see what it is set as, and "Name" is empty. I can get the 
>>> class and the value but not sure what the PropSetID would be - there 
>>> isn't a property on the Field object for this, only ID. using "ID", I 
>>> fed it the below:
>>>
>>> _oFields.Add("PR_EFORMS_LOCALE_ID", 6, 1033, 1072234499);
>>>
>>> or
>>>
>>> _oFields.Add(""", 6, 1033, 1072234499);
>>>
>>> But both give an error of E_INVALIDARG(80070057).
>>>
>>>
>>> Any idea how I can either feed in the right data (or alternatively 
>>> access the other method)? According to the MFCMAPI screen,  the property 
>>> tag is 0x3FE90003, Property ID is 0x3FE9, type is PT_LONG, Property Name 
>>> is PR_EFORMS_LOCALE_ID (), Named property kind is MNID_ID, and the named 
>>> property guid is {00020328-0000-0000-C000-000000000046} = PS_MAPI.
>>>
>>
>> A little further info - I tried this:
>>
>> _oFields.Add("0x3FE90003", 6, 1033, "0002032800000000C000000000000046");
>>
>> Doesn't give an error now, which is nice, but equally it doesn't seem to 
>> have created the property!
>>
>
> More info - tried the "Update" method. But this gives an error too; 
> MAPI_E_NO_SUPPORT (80040102)
date: Thu, 10 Apr 2008 11:54:28 -0700   author:   Dmitry Streblechenko

Re: Next problem - "wrong" add method available...   
"Dmitry Streblechenko"  wrote in message 
news:ewY9OxzmIHA.748@TK2MSFTNGP04.phx.gbl...
> See http://www.cdolive.com/cdo10.htm
>
Thanks - I acutally sussed that although the IDE and compiler were working 
on the "four parameters" method, I could pass my Property tag directly as 
opposed to a string and 3 reflection missing values. It seemed to then 
interpret this as the two method version... well it works anyways!
date: Fri, 11 Apr 2008 09:35:58 +0100   author:   JamesB

Google
 
Web ureader.com


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