Пример #1
0
        /// <summary>
        /// Deletes this recipient list and all email address items related to it.
        /// </summary>
        /// <remarks>
        /// Using this class and any members after its deletion is risky, as any
        /// data it might be referencing will not be available.
        /// The EmailAddress property will be cleared when calling Delete.
        /// </remarks>
        public void Delete()
        {
            RecipientData dataUtil = GetWorker();

            dataUtil.RecipientListDelete(_id);

            // Reset collection
            _emailAddresses = null;
            ClearEmailAddressCount();
        }