Example #1
0
 // Token: 0x06000E7B RID: 3707 RVA: 0x0004576C File Offset: 0x0004396C
 public static void UpdateUserInformationRecord(Guid mdbGuid, Guid mbxGuid, ADPropertyBag propertiesToUpdate, IEnumerable <MbxPropertyDefinition> propertiesToRemove)
 {
     PropValue[] properties    = MbxRecipientSession.PropValuesFromADPropertyBag(propertiesToUpdate);
     PropTag[]   deletePropTag = MbxRecipientSession.PropTagsFromProperties(propertiesToRemove);
     try
     {
         using (ExRpcAdmin exRpcAdminInstance = MbxRecipientSession.GetExRpcAdminInstance())
         {
             exRpcAdminInstance.UpdateUserInfo(mdbGuid, mbxGuid, 0U, properties, deletePropTag);
         }
     }
     catch (MapiPermanentException innerException)
     {
         throw new ADDriverStoreAccessPermanentException(innerException);
     }
     catch (MapiRetryableException innerException2)
     {
         throw new ADDriverStoreAccessTransientException(innerException2);
     }
 }
Example #2
0
 // Token: 0x06000E7A RID: 3706 RVA: 0x000456E0 File Offset: 0x000438E0
 public static void CreateUserInformationRecord(Guid mdbGuid, Guid mbxGuid, ADPropertyBag properties)
 {
     PropValue[] properties2 = MbxRecipientSession.PropValuesFromADPropertyBag(properties);
     try
     {
         using (ExRpcAdmin exRpcAdminInstance = MbxRecipientSession.GetExRpcAdminInstance())
         {
             exRpcAdminInstance.CreateUserInfo(mdbGuid, mbxGuid, 0U, properties2);
         }
     }
     catch (MapiExceptionUserInformationAlreadyExists mapiExceptionUserInformationAlreadyExists)
     {
         throw new ADObjectAlreadyExistsException(new LocalizedString(mapiExceptionUserInformationAlreadyExists.Message), mapiExceptionUserInformationAlreadyExists);
     }
     catch (MapiPermanentException innerException)
     {
         throw new ADDriverStoreAccessPermanentException(innerException);
     }
     catch (MapiRetryableException innerException2)
     {
         throw new ADDriverStoreAccessTransientException(innerException2);
     }
 }