K
Kelly Johnson
According to MSDN, PR_EMS_AB_HOME_MDB , equates to: &H8006001E
(0x8006001E in c#), which also equates to: 2147876894.
In my code, everytime I try to reference this property I get "
[Collaboration Data Objects - [MAPI_E_NOT_FOUND(8004010F)]]"
Is it possible that this property does not exist as part of CDO 1.21?
If it does, is there another way to access it?
Here is the code that errors when trying to access that property:
/* references microsoft.cdo 1.21 */
const long PR_EMS_AB_HOME_MDB = (long)0x8006001E;
MAPI.SessionClass oSession = new MAPI.SessionClass();
oSession.Logon("", "", false, false, System.Reflection.Missing.Value,
false, System.Reflection.Missing.Value);
MAPI.AddressEntry oCurrentUser;
MAPI.Fields oFields;
MAPI.Field oField;
oCurrentUser = (MAPI.AddressEntry)oSession.CurrentUser;
oFields = (MAPI.Fields)oCurrentUser.Fields;
//causes error: " [Collaboration Data Objects -
[MAPI_E_NOT_FOUND(8004010F)]]"
//oField = (MAPI.Field)oFields.get_Item(PR_EMS_AB_HOME_MDB,
Missing.Value);
//causes error: " [Collaboration Data Objects -
[MAPI_E_NOT_FOUND(8004010F)]]"
//oField = (MAPI.Field)oFields.get_Item(0x8006001E, Missing.Value);
//causes error: " [Collaboration Data Objects -
[MAPI_E_NOT_FOUND(8004010F)]]"
oField = (MAPI.Field)oFields.get_Item(2147876894, Missing.Value);
Anyone have any suggestions?
Thank you very much,
Kelly Johnson
(e-mail address removed)
(0x8006001E in c#), which also equates to: 2147876894.
In my code, everytime I try to reference this property I get "
[Collaboration Data Objects - [MAPI_E_NOT_FOUND(8004010F)]]"
Is it possible that this property does not exist as part of CDO 1.21?
If it does, is there another way to access it?
Here is the code that errors when trying to access that property:
/* references microsoft.cdo 1.21 */
const long PR_EMS_AB_HOME_MDB = (long)0x8006001E;
MAPI.SessionClass oSession = new MAPI.SessionClass();
oSession.Logon("", "", false, false, System.Reflection.Missing.Value,
false, System.Reflection.Missing.Value);
MAPI.AddressEntry oCurrentUser;
MAPI.Fields oFields;
MAPI.Field oField;
oCurrentUser = (MAPI.AddressEntry)oSession.CurrentUser;
oFields = (MAPI.Fields)oCurrentUser.Fields;
//causes error: " [Collaboration Data Objects -
[MAPI_E_NOT_FOUND(8004010F)]]"
//oField = (MAPI.Field)oFields.get_Item(PR_EMS_AB_HOME_MDB,
Missing.Value);
//causes error: " [Collaboration Data Objects -
[MAPI_E_NOT_FOUND(8004010F)]]"
//oField = (MAPI.Field)oFields.get_Item(0x8006001E, Missing.Value);
//causes error: " [Collaboration Data Objects -
[MAPI_E_NOT_FOUND(8004010F)]]"
oField = (MAPI.Field)oFields.get_Item(2147876894, Missing.Value);
Anyone have any suggestions?
Thank you very much,
Kelly Johnson
(e-mail address removed)