public static void GetObjectPostAction(DataRow inputRow, DataTable table, DataObjectStore store)
        {
            DataRow dataRow = table.Rows[0];

            if (dataRow["SimpleEmailAddresses"] != DBNull.Value)
            {
                dataRow["EmailAddresses"] = EmailAddressList.FromProxyAddressCollection((ProxyAddressCollection)dataRow["SimpleEmailAddresses"]);
            }
            if (dataRow["ObjectCountryOrRegion"] != DBNull.Value)
            {
                dataRow["CountryOrRegion"] = ((CountryInfo)dataRow["ObjectCountryOrRegion"]).Name;
            }
            MailboxPropertiesHelper.GetMaxSendReceiveSize(inputRow, table, store);
            MailboxPropertiesHelper.GetAcceptRejectSendersOrMembers(inputRow, table, store);
            if (dataRow["EmailAddresses"] != DBNull.Value && dataRow["RemoteRoutingAddress"] != DBNull.Value)
            {
                EmailAddressList emailAddressList = (EmailAddressList)dataRow["EmailAddresses"];
                string           strA             = (string)dataRow["RemoteRoutingAddress"];
                foreach (EmailAddressItem emailAddressItem in emailAddressList)
                {
                    string identity = emailAddressItem.Identity;
                    if (string.Compare(strA, identity, true) == 0)
                    {
                        dataRow["RemoteRoutingAddress"] = identity;
                        break;
                    }
                }
            }
            dataRow["IsRemoteUserMailbox"] = ((RecipientTypeDetails)((ulong)int.MinValue)).Equals(dataRow["RecipientTypeDetails"]);
        }
예제 #2
0
        public static void GetObjectPostAction(DataRow inputRow, DataTable table, DataObjectStore store)
        {
            DataRow dataRow = table.Rows[0];

            if (dataRow["SimpleEmailAddresses"] != DBNull.Value)
            {
                dataRow["EmailAddresses"] = EmailAddressList.FromProxyAddressCollection((ProxyAddressCollection)dataRow["SimpleEmailAddresses"]);
            }
            if (dataRow["ObjectCountryOrRegion"] != DBNull.Value)
            {
                dataRow["CountryOrRegion"] = ((CountryInfo)dataRow["ObjectCountryOrRegion"]).Name;
            }
            MailboxPropertiesHelper.GetMaxSendReceiveSize(inputRow, table, store);
            MailboxPropertiesHelper.GetAcceptRejectSendersOrMembers(inputRow, table, store);
        }
 public static void MailFlowSettingsPostAction(DataRow inputRow, DataTable dataTable, DataObjectStore store)
 {
     MailboxPropertiesHelper.GetMaxSendReceiveSize(inputRow, dataTable, store);
     MailboxPropertiesHelper.GetAcceptRejectSendersOrMembers(inputRow, dataTable, store);
 }