コード例 #1
0
ファイル: ThisAddIn.cs プロジェクト: NRohilla/ClearMessageAPI
        private void InitializeMailObjects()
        {
            clearMailModel = new ClearMailModel();
            clearMailModel.personalizations = new List <Personalizations>();
            clearMailModel.from             = new From();
            clearMailModel.content          = new List <Content>();
            clearMailModel.attachments      = new List <Attachments>();

            personalizations    = new Personalizations();
            personalizations.to = new List <To>();
            attachments         = new Attachments();
        }
コード例 #2
0
ファイル: ThisAddIn.cs プロジェクト: NRohilla/ClearMessageAPI
        private void ResetMailObjects()
        {
            clearMailModel   = null;
            personalizations = null;
            attachments      = null;

            if (attachmentList.Any())
            {
                attachmentList.Clear();
            }

            if (tempAttachmentList.Any())
            {
                tempAttachmentList.Clear();
            }

            if (cmRecipientsList.Any())
            {
                cmRecipientsList.Clear();
            }
        }